mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Make an ast.TypeExpr's ID0 field more consistent
This commit is contained in:
1 parent
90a794c0b8
commit
4ddc2f0055
5 files changed
+11
-11
No files matched your search
@@ -134,7 +134,7 @@ func parseBuiltInFuncs(tm *t.Map, ss []string, generic bool) (map[t.QQID]*a.Func
|
||||
}
|
||||
|
||||
func (c *Checker) resolveFunc(typ *a.TypeExpr) (*a.Func, error) {
|
||||
if typ.Decorator() != t.IDOpenParen {
|
||||
if typ.Decorator() != t.IDFunc {
|
||||
return nil, fmt.Errorf("check: resolveFunc cannot look up non-func TypeExpr %q", typ.Str(c.tm))
|
||||
}
|
||||
lTyp := typ.Receiver()
|
||||
|
||||
Reference in new issue
Block a user