mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Allow built-in args' types to be refined
This commit is contained in:
1 parent
a69948b23d
commit
7a9554194c
5 files changed
+29
-47
No files matched your search
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user