Typed Racket warns about this at log level "warning". Do you see that for
this program?

Sam
On Jun 12, 2016 1:32 PM, "antoine" <antoine.br...@sfr.fr> wrote:

Hello,

 1 #lang typed/racket
 2
 3 (define-type Abc (U 'a 'b 'c))
 4
 5 (define (test [p : Abc]) : 'ret
 6   (case p
 7     [('a 'b) 'ret]
 8     [('z) 'ret]
 9     [else 'ret]))

This program type check, but the condition on line 8 is unreachable, is it
possible for typed/racket to complain about it?

-- 
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to