File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/reporting
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2344,12 +2344,12 @@ import transform.SymUtils._
2344
2344
class CaseClassMissingNonImplicitParamList (cdef : untpd.TypeDef )(using Context )
2345
2345
extends SyntaxMsg (CaseClassMissingNonImplicitParamListID ) {
2346
2346
def msg =
2347
- em """ |A ${hl(" case class" )} must have at least one non-implicit parameter list """
2347
+ em """ |A ${hl(" case class" )} must have at least one leading non-implicit parameter list """
2348
2348
2349
2349
def explain =
2350
- em """ | ${cdef.name} must have at least one non-implicit parameter list,
2350
+ em """ | ${cdef.name} must have at least one leading non-implicit parameter list,
2351
2351
| if you're aiming to have a case class parametrized only by implicit ones, you should
2352
- | add an explicit ${hl(" ()" )} as a parameter list to ${cdef.name}. """ .stripMargin
2352
+ | add an explicit ${hl(" ()" )} as the first parameter list to ${cdef.name}. """ .stripMargin
2353
2353
}
2354
2354
2355
2355
class EnumerationsShouldNotBeEmpty (cdef : untpd.TypeDef )(using Context )
You can’t perform that action at this time.
0 commit comments