fix some dumb bugs
svn: r11082 original commit: ad2b2b31995ea2ef7c5b0f65b240b90cc3808bf2
This commit is contained in:
parent
4d9768895a
commit
50bf0a65a4
|
@ -48,7 +48,7 @@
|
|||
[(Instance t)
|
||||
(eq? (syntax-e #'Instance) 'Instance)
|
||||
(let ([v (parse-type #'t)])
|
||||
(if (or (Mu? v) (Class? v) (Union? v))
|
||||
(if (not (or (Mu? v) (Class? v) (Union? v)))
|
||||
(begin (tc-error/delayed "Argument to Instance must be a class type, got ~a" v)
|
||||
(make-Instance (Un)))
|
||||
(make-Instance v)))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user