Skip to content

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

@stchang

Description

@stchang

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions