1// compile 2 3// Copyright 2012 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// Used to crash compiler in interface type equality check. 8 9package p 10 11type I1 interface { 12 F() interface{I1} 13} 14 15type I2 interface { 16 F() interface{I2} 17} 18 19var v1 I1 20var v2 I2 21 22func f() bool { 23 return v1 == v2 24} 25