check: add maxPointerBounds and funcBounds

This commit is contained in:
Nigel Tao committed 2023-06-13 11:52:16 +10:00
1 parent 8ac22ceab2
commit 6411561deb
3 files changed
+20 -6

No files matched your search

+1 -1
View File
@@ -1232,7 +1232,7 @@ func (q *checker) tcheckChoose(n *a.Choose) error {
return fmt.Errorf("check: incompatible choose functions %q and %q: %v",
fQQID.Str(q.tm), gQQID.Str(q.tm), err)
}
o.SetMBounds(bounds{one, one})
o.SetMBounds(bounds{one, maxPointerBounds})
o.SetMType(typeExprNonNullptr)
}
return nil