mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
First cut of a bounds checker.
This commit is contained in:
1 parent
15485dadc1
commit
a8c304236d
6 files changed
+148
-31
No files matched your search
@@ -551,6 +551,11 @@ func (c *typeChecker) checkTypeExpr(n *a.TypeExpr, depth uint32) error {
|
||||
}
|
||||
|
||||
default:
|
||||
// TODO: delete this hack.
|
||||
if n.PackageOrDecorator() == c.idMap.ByName("io") && n.Name() == c.idMap.ByName("buf1") {
|
||||
break
|
||||
}
|
||||
|
||||
return fmt.Errorf("check: unrecognized node for checkTypeExpr")
|
||||
}
|
||||
n.Node().SetTypeChecked()
|
||||
|
||||
Reference in new issue
Block a user