Russ Cox | b4f8e01 | 2008-10-08 09:21:57 -0700 | [diff] [blame] | 1 | // $G $D/$F.go && $L $F.$A && ! ./$A.out |
2 | |||||
3 | // Copyright 2009 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 | package main | ||||
8 | |||||
9 | type S struct | ||||
10 | |||||
11 | type I interface { | ||||
12 | Foo() | ||||
13 | } | ||||
14 | |||||
15 | func main() { | ||||
16 | var s *S; | ||||
17 | var i I; | ||||
18 | i = s; | ||||
19 | } | ||||
20 | |||||
21 | // hide S down here to avoid static warning | ||||
22 | type S struct { | ||||
23 | } |