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:
Asumu Takikawa 2013-01-15 15:44:34 -05:00
parent 5fe004cd9b
commit 28d46105c9

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