Added a test for optional let annotations.

original commit: 7e2094f2d719cfdb626c6aa78893a8516c9a7ea0
This commit is contained in:
Vincent St-Amour 2010-09-16 13:07:09 -04:00
parent ef623a46b6
commit 75d628bd68

View File

@ -0,0 +1,16 @@
#lang typed/racket
(let: ((x : Integer 3)
(y 4))
(+ x y))
(let: ((x 3) (y 4))
(+ x y))
(let*: ((x 3)
(y : Integer (+ x 1)))
(+ x y))
(letrec: ((x 3)
(y : (Integer -> Integer) (lambda (x) (y x))))
x)