2021-04-22 16:04:06 +00:00
|
|
|
#lang typed/syndicate
|
2020-03-10 14:57:54 +00:00
|
|
|
|
|
|
|
(require rackunit/turnstile)
|
|
|
|
|
|
|
|
;; TODO - currently fails with a racket error. Is that OK?
|
|
|
|
;; (ideally, this would fail with a better error message)
|
|
|
|
(typecheck-fail
|
|
|
|
(let ([x (define y 5)])
|
|
|
|
(add1 1)))
|