Parse-type fix for Instance types

original commit: 00bb21964247ebb774c2db4709b567adf16cc51a
This commit is contained in:
Asumu Takikawa 2014-01-20 17:08:07 -05:00
parent fef7b7b508
commit 72dd536f96

View File

@ -294,7 +294,7 @@
(Un)])]
[(:Instance^ t)
(let ([v (parse-type #'t)])
(if (not (or (F? v) (Mu? v) (Class? v) (Union? v) (Error? v)))
(if (not (or (F? v) (Mu? v) (Name? v) (Class? v) (Error? v)))
(begin (tc-error/delayed "Argument to Instance must be a class type, got ~a" v)
(make-Instance (Un)))
(make-Instance v)))]