typed-racket/typed-racket-test/fail/case-lambda3.rkt
2014-12-16 10:07:25 -05:00

17 lines
227 B
Racket

#;
(exn-pred 1)
#lang typed/racket
(: f (case->
(String -> String)
(String String -> String)
(String Symbol * -> String)))
(define f
(case-lambda
((x) x)
((x y) y)
((x . w) x)))
(f "x" 'y)