Closed as not planned
Closed as not planned
Description
Compiler version
Scala 3.3.0
Minimized code & Output
trait Obj1(a: Int = 0)(b: Int = 0)
trait Obj2()()
// Expected:
new Obj1()(){}
new Obj2()(){}
// Unexpected:
new Obj1{} // missing arguments for constructor Obj1 in trait Obj1
new Obj2{}
https://scastie.scala-lang.org/SRf7kAOKQWuUAm8yegbFtg
Expectation
No error, or a similar error for Obj2{}
(or better)