Fix type in error case
This commit is contained in:
parent
b5f7a7ffb2
commit
e0acdf1fc1
|
@ -191,7 +191,7 @@
|
||||||
(match (resolve v)
|
(match (resolve v)
|
||||||
[(and s (? Struct?)) (make-StructTop s)]
|
[(and s (? Struct?)) (make-StructTop s)]
|
||||||
[_ (tc-error/delayed "Argument to Struct must be a structure type, got ~a" v)
|
[_ (tc-error/delayed "Argument to Struct must be a structure type, got ~a" v)
|
||||||
(make-StructTop (Un))]))]
|
(Un)]))]
|
||||||
[((~and kw t:Instance) t)
|
[((~and kw t:Instance) t)
|
||||||
(add-disappeared-use #'kw)
|
(add-disappeared-use #'kw)
|
||||||
(let ([v (parse-type #'t)])
|
(let ([v (parse-type #'t)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user