Set placeholder MBounds, not just MType

This commit is contained in:
Nigel Tao committed 2018-07-07 19:28:51 +10:00
1 parent d796fc75b2
commit 6ede44e474
3 files changed
+26 -21

No files matched your search

+5
View File
@@ -66,6 +66,11 @@ var (
typeExprTableU8 = a.NewTypeExpr(t.IDTable, 0, 0, nil, nil, typeExprU8)
)
func setPlaceholderMBoundsMType(n *a.Node) {
n.SetMBounds(a.Bounds{zero, zero})
n.SetMType(typeExprPlaceholder)
}
// typeMap maps from variable names (as token IDs) to types.
type typeMap map[t.ID]*a.TypeExpr