for _, m := range T.typeSet().methods {
_, f := ityp.typeSet().LookupMethod(m.pkg, m.name)
- if f == nil && static {
+ if f == nil {
+ if !static {
+ continue
+ }
return m, f
}
var testTerms = map[string]*term{
"∅": nil,
- "⊤": &term{},
- "int": &term{false, Typ[Int]},
- "~int": &term{true, Typ[Int]},
- "string": &term{false, Typ[String]},
- "~string": &term{true, Typ[String]},
+ "⊤": {},
+ "int": {false, Typ[Int]},
+ "~int": {true, Typ[Int]},
+ "string": {false, Typ[String]},
+ "~string": {true, Typ[String]},
// TODO(gri) add a defined type
}