Home | History | Annotate | Download | only in fixedbugs
      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 
      9 package p
     10 
     11 type i1 interface {
     12       F() interface{i1}
     13 }
     14 
     15 type i2 interface {
     16       F() interface{i2}
     17 }       
     18 
     19 var v1 i1
     20 var v2 i2
     21 
     22 func f() bool {
     23        return v1 == v2
     24 }
     25 
     26 // TODO(gri) Change test to use exported interfaces.
     27 // See issue #15596 for details.