2008-07-29 20:02:49 -06:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Base for the decls.go tests.
|
|
|
|
|
|
|
|
package base
|
|
|
|
|
2008-08-04 16:37:47 -06:00
|
|
|
export type Foo int
|
2008-07-31 11:47:10 -06:00
|
|
|
|
2008-08-04 16:37:47 -06:00
|
|
|
export type Bar *float;
|
2008-07-31 11:47:10 -06:00
|
|
|
|
2008-08-04 16:37:47 -06:00
|
|
|
export type Node struct {
|
2008-07-29 20:02:49 -06:00
|
|
|
left, right *Node;
|
2008-07-31 11:47:10 -06:00
|
|
|
val bool;
|
2008-08-11 21:40:37 -06:00
|
|
|
f Foo;
|
|
|
|
}
|
|
|
|
|
2008-09-19 00:09:07 -06:00
|
|
|
export func (p *Node) F(x int) {};
|
2008-08-11 21:40:37 -06:00
|
|
|
|
|
|
|
export type I interface {
|
2008-09-19 00:09:07 -06:00
|
|
|
f();
|
2008-07-29 20:02:49 -06:00
|
|
|
}
|