mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
040fe32119
Part of issue 2833, but works fine with current test runner. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5606056
27 lines
389 B
Go
27 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 bug066
|
|
|
|
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"];
|
|
}
|