Allow built-in args' types to be refined

This commit is contained in:
Nigel Tao committed 2018-05-11 14:49:15 +10:00
1 parent a69948b23d
commit 7a9554194c
5 files changed
+29 -47

No files matched your search

+1 -1
View File
@@ -999,7 +999,7 @@ swtch:
// TODO: reject. You can only refine numeric types.
}
if qid[0] == t.IDBase {
if _, ok := builtInTypeMap[qid[1]]; ok {
if _, ok := builtInTypeMap[qid[1]]; ok || qid[1] == t.IDDiamond {
break swtch
}
}