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;
|
|
|
|
const, type, var, package int;
|
|
|
|
}
|
|
|
|
|
|
|
|
export func (p *Node) case(x int) {};
|
|
|
|
|
|
|
|
export type I interface {
|
|
|
|
func();
|
2008-07-29 20:02:49 -06:00
|
|
|
}
|