Use "T[..inclMax]" instead of "T[:exclMax]".

This commit is contained in:
Nigel Tao committed 2017-05-20 15:11:30 +10:00
1 parent d3eba13223
commit 9184e2682e
9 files changed
+53 -44

No files matched your search

+1 -1
View File
@@ -524,7 +524,7 @@ func (q *checker) tcheckTypeExpr(n *a.TypeExpr, depth uint32) error {
}
break
}
if n.InclMin() != nil || n.ExclMax() != nil {
if n.Min() != nil || n.Max() != nil {
// TODO: reject.
}
// TODO: see if name refers to a struct type.