blob: 8dfc9d8ff5ad6695205cc73bc22c4b4aa43d874a [file] [log] [blame]
Russ Coxb4f8e012008-10-08 09:21:57 -07001// $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
7package main
8
9type S struct
10
11type I interface {
12 Foo()
13}
14
15func main() {
16 var s *S;
17 var i I;
18 i = s;
19}
20
21// hide S down here to avoid static warning
22type S struct {
23}