New test for lambda formal list mismatches.

original commit: 467b138cdacde26bcad3bbb9955fc62cfa9f1536
This commit is contained in:
Stevie Strickland 2008-06-18 15:03:12 -04:00
parent 9544bcbd1f
commit 1bbdcf1ccf

View File

@ -0,0 +1,17 @@
#lang typed-scheme
(: f (Integer Integer Integer * -> Integer))
(define (f x)
(+ #\c x))
(: f2 (Integer Integer * -> Integer))
(define (f2 x y . z)
(apply + #\c x y z))
(: f4 (Integer Integer -> Integer))
(define (f4 x y w . z)
(apply + #\c x y w z))
(: f3 (Integer Integer -> Integer))
(define (f3 x . z)
(apply + #\c x z))