Added a test for optional let annotations.
original commit: 7e2094f2d719cfdb626c6aa78893a8516c9a7ea0
This commit is contained in:
parent
ef623a46b6
commit
75d628bd68
16
collects/tests/typed-scheme/succeed/let-no-anns.rkt
Normal file
16
collects/tests/typed-scheme/succeed/let-no-anns.rkt
Normal 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)
|
Loading…
Reference in New Issue
Block a user