go/test/fixedbugs/bug066.go
Rob Pike 85c85e2b3f test update
SVN=128120
2008-07-19 15:08:56 -07:00

28 lines
389 B
Go

// $G $D/$F.go
// 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.
package main
type Scope struct {
entries *map[string] *Object;
}
type Type struct {
scope *Scope;
}
type Object struct {
typ *Type;
}
func Lookup(scope *Scope) *Object {
return scope.entries["foo"];
}