Closed
Description
@OliverJAsh kindly provided a small repro:
This fixed the issue for https://github.com/OliverJAsh/ts-2.4-memory-issue, but I ran into another scenario where the memory issue pops up again. I've created a small test case in https://github.com/OliverJAsh/ts-2.4-memory-issue/tree/2.4.0-dev.20170519.
@sledorze additionally noted that the issue happens with ill-typed programs, not well-typed ones.