Fix type in error case

This commit is contained in:
Asumu Takikawa 2013-05-31 18:44:02 -04:00 committed by Vincent St-Amour
parent b5f7a7ffb2
commit e0acdf1fc1

View File

@ -191,7 +191,7 @@
(match (resolve v)
[(and s (? Struct?)) (make-StructTop s)]
[_ (tc-error/delayed "Argument to Struct must be a structure type, got ~a" v)
(make-StructTop (Un))]))]
(Un)]))]
[((~and kw t:Instance) t)
(add-disappeared-use #'kw)
(let ([v (parse-type #'t)])