Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(493)

Unified Diff: go/gcimporter/gcimporter_test.go

Issue 66730052: go.tools/go/types: Enable enumeration of the fields of a type.
Patch Set: diff -r c7ed95187f53 https://code.google.com/p/go.tools Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cmd/vet/copylock.go ('k') | go/pointer/gen.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/gcimporter/gcimporter_test.go
===================================================================
--- a/go/gcimporter/gcimporter_test.go
+++ b/go/gcimporter/gcimporter_test.go
@@ -207,7 +207,7 @@
}
mutex := imports["sync"].Scope().Lookup("Mutex").(*types.TypeName).Type()
- mset := types.NewMethodSet(types.NewPointer(mutex)) // methods of *sync.Mutex
+ mset := types.MethodSet(types.NewPointer(mutex)) // methods of *sync.Mutex
sel := mset.Lookup(nil, "Lock")
lock := sel.Obj().(*types.Func)
if got, want := lock.Pkg().Path(), "sync"; got != want {
« no previous file with comments | « cmd/vet/copylock.go ('k') | go/pointer/gen.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b