add a test case for parametric->/c that tests that the

polymorphic variables are actually instantiated when the
function is called
This commit is contained in:
Robby Findler 2014-09-08 09:22:30 -05:00
parent 1542398822
commit e281eecc1f

View File

@ -52,4 +52,14 @@
(λ (x y) x)
'pos 'neg)
1 "foo")
1))
1)
(test/pos-blame
'parametric->/c7
'(let* ([c #f]
[f (contract
(parametric->/c (x) (-> x x))
(λ (x) (unless c (set! c x)) c)
'pos 'neg)])
(f 1)
(f 2))))