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
5package main
6
7import "./a"
8
9func F() any {
10	return struct{ int }{0}
11}
12
13func main() {
14	_, ok1 := F().(struct{ int })
15	_, ok2 := a.F().(struct{ int })
16	if !ok1 || ok2 {
17		panic(0)
18	}
19}
20