Skip to content

val rec and nested match #52

@minoki

Description

@minoki

I think it is sensible to disallow nested match in val rec, but I couldn't find such words in the definition. Am I missing something?

In HaMLet S, the following code results in a runtime error.

val rec (f with () = print (g "X")) = fn x => x
and (g with () = print (f "Y")) = fn y => y;

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