File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1400,7 +1400,7 @@ object messages {
1400
1400
case class AbstractMemberMayNotHaveModifier (sym : Symbol , flag : FlagSet )(
1401
1401
implicit ctx : Context )
1402
1402
extends Message (AbstractMemberMayNotHaveModifierID ) {
1403
- val msg = hl """ abstract $sym may not have ` $flag' modifier """
1403
+ val msg = hl """ ${ " abstract" } $sym may not have ` $flag' modifier """
1404
1404
val kind = " Syntax"
1405
1405
val explanation = " "
1406
1406
}
@@ -1442,7 +1442,8 @@ object messages {
1442
1442
extends Message (TraitsMayNotBeFinalID ) {
1443
1443
val msg = hl """ $sym may not be ${" final" }"""
1444
1444
val kind = " Syntax"
1445
- val explanation = " A trait can never be final."
1445
+ val explanation =
1446
+ " A trait can never be final since it is abstract and must be extended to be useful."
1446
1447
}
1447
1448
1448
1449
case class NativeMembersMayNotHaveImplementation (sym : Symbol )(
You can’t perform that action at this time.
0 commit comments