Add tests for PR 13094.
The bug itself was fixed already when ordinary type variable scoping was fixed. Closes PR 13094
This commit is contained in:
parent
5fe004cd9b
commit
28d46105c9
12
collects/tests/typed-racket/succeed/pr13094.rkt
Normal file
12
collects/tests/typed-racket/succeed/pr13094.rkt
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#lang typed/racket
|
||||||
|
|
||||||
|
;; Test alpha equivalent types
|
||||||
|
|
||||||
|
(: x (All (A) (A -> A)))
|
||||||
|
(define x (plambda: (C) ((f : C)) f))
|
||||||
|
|
||||||
|
(: y (All (A) (A A -> A)))
|
||||||
|
(define y (plambda: (C) ((f : C) (g : A)) f))
|
||||||
|
|
||||||
|
(: z (All (B) (B (B -> B) -> B)))
|
||||||
|
(define z (plambda: (C) ((x : C) (f : (B -> B))) (f x)))
|
Loading…
Reference in New Issue
Block a user