Parse-type fix for Instance types

This commit is contained in:
Asumu Takikawa 2014-01-20 17:08:07 -05:00
parent ee3e83856c
commit 00bb219642

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)))]