-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:inferitype:bugitype:compiler hangsIssues where the compiler hangs.Issues where the compiler hangs.regressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymorestat:fixed in nextThe issue was fixed in Next and only still applies to LTS.The issue was fixed in Next and only still applies to LTS.
Description
Compiler version
Scala: 3.3.3
Minimized code
trait ExampleTrait1
trait ExampleTrait2
class ExampleClass(traitOne: ExampleTrait1, traitTwo: ExampleTrait2)
def fun[In](a: In): Unit = println(0)
fun(new ExampleClass(_, _, _))
Output
java.lang.OutOfMemoryError: Java heap space
Expectation
An error at compile time because the exceeded parameter of "ExampleClass", it just tries to compile until the java heap space is over.
He-Pin, Nojipiz, Gedochao, gojideth and raquonmcb
Metadata
Metadata
Assignees
Labels
area:inferitype:bugitype:compiler hangsIssues where the compiler hangs.Issues where the compiler hangs.regressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymorestat:fixed in nextThe issue was fixed in Next and only still applies to LTS.The issue was fixed in Next and only still applies to LTS.