typed-racket/typed-racket-test/fail/type-variable-scope-1.rkt
2014-12-16 10:07:25 -05:00

11 lines
249 B
Racket

#;
(exn:pred (lambda (e) (regexp-match? "Expected 1 type variables" e)))
#lang typed/racket
;; Testing type variable scope
;; This should fail because of the type variable arities
(: f (All (b) (b -> b)))
(define f
(plambda: (a b) ([x : b]) x))