Closed
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.