这是indexloc提供的服务,不要输入任何密码
Skip to content

Typed Racket hangs on a simple program #1234

@shaobo-he

Description

@shaobo-he

What version of Racket are you using?

v8.4 [cs] and v8.5 [cs]

What program did you run?

#lang typed/racket/base

(provide (all-defined-out))

(define-type (Formula a)
  (U
   True
   False
   (Atom a)
   (Not a)
   (And a)
   (Or a)
   (Imp a)
   (Iff a)
   (Forall a)
   (Exists a)))

(struct False () #:transparent)
(struct True () #:transparent)
(struct (a) Atom ([f : a]) #:transparent)
(struct (a) Not ([f : (Formula a)]) #:transparent)
(struct (a) And ([l : (Formula a)] [r : (Formula a)]) #:transparent)
(struct (a) Or ([l : (Formula a)] [r : (Formula a)]) #:transparent)
(struct (a) Imp ([pre : (Formula a)] [post : (Formula a)]) #:transparent)
(struct (a) Iff ([l : (Formula a)] [r : (Formula a)]) #:transparent)
(struct (a) Forall ([v : String] [f : (Formula a)]) #:transparent)
(struct (a) Exists ([v : String] [f : (Formula a)]) #:transparent)

What should have happened?

I'd expect this program to type check quickly.

If you got an error message, please include it here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions