When a trait which extends a class with constructor is initialised directly, it may give confusing message #22061
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:bug
Compiler version
3.5.2
Minimized code
Output
No idea where
$lessinit$greater$default$
came fromExpectation
the error message should be like "trait B has to be constructed with a constructor of class A"
In Scala 2.13 this actually succeeded (because of implicit eta-reduction of 0-arity constructor), which may explained the confusing error message
The text was updated successfully, but these errors were encountered: