Open reid-spencer opened 4 months ago
I found a workaround to this problem: remove the default argument values from both the parents
and f
parameters. This effectively permits me to keep working and might be a hint as to the actual problem. Hope this makes it easier to find.
Compiler version
Code base doesn't compile prior to 3.4.1 but issue happens in 3.4.1 & 3.4.2
Minimized code
A GitHub repository has been created to replicate this issue. The README.md file provides the instructions on how to reproduce using that repository.
The repository is here: https://github.com/ossuminc/scala-issue-21302
The minimal scala code:
Output
Expectation
This exception does not occur during compilation full Linking of Javascript completes
Other Notes
This problem does not happen when compiling for the JVM and seems to have something to do with recursing on a function that has currying, like this: