- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for missingMethod (0.54 sec)
-
src/cmd/compile/internal/types2/instantiate.go
if Ti.typeSet().IsEmpty() { if cause != nil { *cause = check.sprintf("cannot %s %s (empty type set)", verb, T) } return false } // V must implement T's methods, if any. if m, _ := check.missingMethod(V, T, true, Identical, cause); m != nil /* !Implements(V, T) */ { if cause != nil { *cause = check.sprintf("%s does not %s %s %s", V, verb, T, *cause) } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.7K bytes - Viewed (0) -
src/runtime/iface.go
// The cached result doesn't record which // interface function was missing, so initialize // the itab again to get the missing function name. panic(&TypeAssertionError{concrete: typ, asserted: &inter.Type, missingMethod: itabInit(m, false)}) } // find finds the given interface/type pair in t. // Returns nil if the given interface/type pair isn't present. func (t *itabTableType) find(inter *interfacetype, typ *_type) *itab {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 22.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
type V4 struct{} func (V4) M() ` pkg := mustTypecheck(src, nil, nil) T := pkg.Scope().Lookup("T").Type().Underlying().(*Interface) lookup := func(name string) (*Func, bool) { return MissingMethod(pkg.Scope().Lookup(name).Type(), T, true) } // V0 has method m with correct signature. Should not report wrongType. method, wrongType := lookup("V0") if method != nil || wrongType {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
type V4 struct{} func (V4) M() ` pkg := mustTypecheck(src, nil, nil) T := pkg.Scope().Lookup("T").Type().Underlying().(*Interface) lookup := func(name string) (*Func, bool) { return MissingMethod(pkg.Scope().Lookup(name).Type(), T, true) } // V0 has method m with correct signature. Should not report wrongType. method, wrongType := lookup("V0") if method != nil || wrongType {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"IsUntyped", Const, 5}, {"Label", Type, 5}, {"LookupFieldOrMethod", Func, 5}, {"Map", Type, 5}, {"MethodExpr", Const, 5}, {"MethodSet", Type, 5}, {"MethodVal", Const, 5}, {"MissingMethod", Func, 5}, {"Named", Type, 5}, {"NewAlias", Func, 22}, {"NewArray", Func, 5}, {"NewChan", Func, 5}, {"NewChecker", Func, 5}, {"NewConst", Func, 5}, {"NewContext", Func, 18},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)