effekt-lang / effekt-lang/effekt

Renamer stack-overflows on large test suites

Open
#517 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Scala
Stars
469
Forks
41
Avg merge
1d 16h
Merged PRs (30d)
23

Description

When writing large test suites using the `test` stdlib, `Renamer` reaches a stack overflow. (With even larger test suites, doubling the number of tests in the example below, `Namer` will stack overflow.)

## Reproducing the issue

Test suite that triggers a stack overflow in `Renamer` for me:
``` effekt
import test

def main() = {
suite("Testsuite") {
test("A test") { assert(1,1) } // repeated 500 times
}
}
```
https://gist.github.com/marzipankaiser/407983d6cb012e11c03753afeb464bed

I have not, as of yet, managed to reproduce the issue with simplified higher-order functions (not from the test stdlib), but I would assume it's possible.

## Expected behavior
I would expect a long (not highly nested) program to compile normally.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.