Source file test/fixedbugs/issue52856.dir/main.go

     1  // Copyright 2022 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  import "./a"
     8  
     9  func F() any {
    10  	return struct{ int }{0}
    11  }
    12  
    13  func main() {
    14  	_, ok1 := F().(struct{ int })
    15  	_, ok2 := a.F().(struct{ int })
    16  	if !ok1 || ok2 {
    17  		panic(0)
    18  	}
    19  }
    20  

View as plain text