WhileyCompiler icon indicating copy to clipboard operation
WhileyCompiler copied to clipboard

StackOverflowError on Recursive Template

Open DavePearce opened this issue 5 years ago • 0 comments

The following produces a StackOverflowError:

type List<T> is { null|List<List<T> > next }

function damn<T>(T x) -> List<T>:
    return {next: damn(x)}

That's not ideal!

Thanks to @IsaacOscar for pointing this out!!!

DavePearce avatar Feb 11 '20 01:02 DavePearce