modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/test/interface/recursive1.dir/recursive2.go (about)

     1  // Copyright 2012 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  // Test that the mutually recursive types in recursive1.go made it
     6  // intact and with the same meaning, by assigning to or using them.
     7  
     8  package main
     9  
    10  import "./recursive1"
    11  
    12  func main() {
    13  	var i1 p.I1
    14  	var i2 p.I2
    15  	i1 = i2
    16  	i2 = i1
    17  	i1 = i2.F()
    18  	i2 = i1.F()
    19  	_, _ = i1, i2
    20  }