Source file test/fixedbugs/issue52535.go

     1  // compile
     2  
     3  // Copyright 2022 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // gofrontend crashed converting unnamed bool type to any.
     8  
     9  package p
    10  
    11  func F() {
    12  	m := make(map[int]int)
    13  	var ok any
    14  	_, ok = m[0]
    15  	_ = ok
    16  }
    17  

View as plain text