mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Allow referring to types from used packages
This commit is contained in:
1 parent
df4539f6ff
commit
0a32c01014
5 files changed
+24
-1
No files matched your search
@@ -1115,6 +1115,10 @@ swtch:
|
||||
}
|
||||
|
||||
default:
|
||||
// TODO: don't hard-code flate.flate_decoder as an acceptable type.
|
||||
if q.tm.ByID(n.Decorator()) == "flate" && q.tm.ByID(n.Name()) == "flate_decoder" {
|
||||
break
|
||||
}
|
||||
return fmt.Errorf("check: unrecognized node for tcheckTypeExpr")
|
||||
}
|
||||
n.Node().SetTypeChecked()
|
||||
|
||||
Reference in new issue
Block a user