Parse-type fix for Instance types
This commit is contained in:
parent
ee3e83856c
commit
00bb219642
|
@ -294,7 +294,7 @@
|
||||||
(Un)])]
|
(Un)])]
|
||||||
[(:Instance^ t)
|
[(:Instance^ t)
|
||||||
(let ([v (parse-type #'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)
|
(begin (tc-error/delayed "Argument to Instance must be a class type, got ~a" v)
|
||||||
(make-Instance (Un)))
|
(make-Instance (Un)))
|
||||||
(make-Instance v)))]
|
(make-Instance v)))]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user