Skip to content

'stack_overflow' with some kinds of recursive types #2

Description

@amiller

This example causes stack overflow:

 type tree = Tip
 | Bin of (tree * int * tree) authtype
 | UnBin of (tree * int * tree) 

This workaround avoids the problem:

 type node = (tree * int * tree)
 and tree = Tip
 | Bin of node authtype
 | UnBin of node

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions