macrotypes icon indicating copy to clipboard operation
macrotypes copied to clipboard

`define-typed-syntax` should error if rule has neither <= input or => conclusion

Open stchang opened this issue 7 years ago • 0 comments

With this lang:

;; file no-arrow-lang.rkt
#lang turnstile/quicklang
(provide void Int)
(define-base-type Int)
(define-typed-syntax (void) ≫ 
  --------
 [⊢ (void-)])

this program produces no errors:

#lang s-exp "no-arrow-lang.rkt"
(require turnstile/rackunit-typechecking)
(check-type (void) : Int)

stchang avatar Mar 29 '18 20:03 stchang