add simple tests
svn: r18638
This commit is contained in:
parent
3e546fee60
commit
752e93fc88
8
collects/tests/typed-scheme/succeed/simple-occurr.ss
Normal file
8
collects/tests/typed-scheme/succeed/simple-occurr.ss
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#lang typed/scheme
|
||||||
|
|
||||||
|
(: x (U #f Number))
|
||||||
|
(define x 7)
|
||||||
|
|
||||||
|
(if x (add1 x) 7)
|
||||||
|
|
||||||
|
(if (number? x) (add1 x) 7)
|
Loading…
Reference in New Issue
Block a user