- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for LookupFieldOrMethod (0.18 sec)
-
src/cmd/compile/internal/types2/object_test.go
// get original error.Error method eface := Universe.Lookup("error") orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error") if orig == nil { t.Fatalf("original error.Error not found") } // get embedded error.Error method iface := pkg.Scope().Lookup("I") embed, _, _ := LookupFieldOrMethod(iface.Type(), false, nil, "Error") if embed == nil { t.Fatalf("embedded error.Error not found") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/go/types/object_test.go
// get original error.Error method eface := Universe.Lookup("error") orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error") if orig == nil { t.Fatalf("original error.Error not found") } // get embedded error.Error method iface := pkg.Scope().Lookup("I") embed, _, _ := LookupFieldOrMethod(iface.Type(), false, nil, "Error") if embed == nil { t.Fatalf("embedded error.Error not found") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/internal/types/testdata/check/decls2/decls2a.go
} func (T1b) int /* ERROR "field and method" */ () {} type T1c struct { time.Time } func (T1c) Time /* ERROR "field and method with the same name Time" */ () int { return 0 } // Disabled for now: LookupFieldOrMethod will find Pointer even though // it's double-declared (it would cost extra in the common case to verify // this). But the MethodSet computation will not find it due to the name
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.3K bytes - Viewed (0)