-
-
Notifications
You must be signed in to change notification settings - Fork 105
Closed
Description
TR accepts a program that should be rejected:
#lang typed/racket/base
(: a*? (-> Any Boolean : (Listof 'a)))
(define (a*? l)
(cond
[(null? l) #t]
[(pair? l) (and
(equal? (car l) 'a)
(a*? (cdr l)))]
[else #f]))
(: use-a*? (-> Any 'a))
(define (use-a*? arg)
(if (a*? arg)
(car arg) ; IT MAY BE NULL!!
'a))
Reproducible with the 9.0 distribution.
Metadata
Metadata
Assignees
Labels
No labels