lambda-auth icon indicating copy to clipboard operation
lambda-auth copied to clipboard

'stack_overflow' with some kinds of recursive types

Open amiller opened this issue 11 years ago • 0 comments

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

amiller avatar Apr 22 '14 15:04 amiller