Open
Description
Compiler version
3.7.0
reproduced also for nightly version (currently 3.7.2-RC1-bin-20250527-2703b6b-NIGHTLY)
Minimized code
//> using scala 3.7.0
enum Test:
case One
case Two(i: Int)
object Test:
object Two:
def apply(i: Int): Test.Two = Test.Two(i)
object app extends App:
Test.Two(1)
Output
run of above code snippet leads to "lock" (execution is stuck)
Expectation
I expected to see at least compiler warning for such code