Add test case for issue #215.
This commit is contained in:
parent
ea6968f1d9
commit
cb35383143
7
typed-racket-test/succeed/match-or.rkt
Normal file
7
typed-racket-test/succeed/match-or.rkt
Normal file
|
@ -0,0 +1,7 @@
|
|||
#lang typed/racket
|
||||
|
||||
(: f : (Listof Integer) (Listof Integer) → Integer)
|
||||
(define (f xs ys)
|
||||
(match* (xs ys)
|
||||
[((list a b) (or (list a b) (list b a))) (+ a b)]
|
||||
[(_ _) 42]))
|
Loading…
Reference in New Issue
Block a user