blob: 29385df76df17a93b1b459a3e8e18aa2eed7ae75 [file] [log] [blame]
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07001// Copyright 2012 The Go Authors. All rights reserved.
David Symondsc3eddc42012-01-21 17:02:54 +11002// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Rob Pike13514d42012-02-19 17:33:41 +11005// Test that the mutually recursive types in recursive1.go made it
David Symondsc3eddc42012-01-21 17:02:54 +11006// intact and with the same meaning, by assigning to or using them.
7
8package main
9
10import "./recursive1"
11
12func 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}