Skip to content

Nested withtype not translated correctly? #548

Open
@andreasabel

Description

@andreasabel

SML/NJ understands this:

datatype Entry =
    e_val of string*Clos
  | e_gen of string*int
withtype Env = Entry list
and Clos = Tm*Env

MLton 20210117 (latest on homebrew) gives this error:

  Undefined type: Env.

So, it seems that the types in withtype do not know each other.

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