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 {
14001400 case class AbstractMemberMayNotHaveModifier (sym : Symbol , flag : FlagSet )(
14011401 implicit ctx : Context )
14021402 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 """
14041404 val kind = " Syntax"
14051405 val explanation = " "
14061406 }
@@ -1442,7 +1442,8 @@ object messages {
14421442 extends Message (TraitsMayNotBeFinalID ) {
14431443 val msg = hl """ $sym may not be ${" final" }"""
14441444 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."
14461447 }
14471448
14481449 case class NativeMembersMayNotHaveImplementation (sym : Symbol )(
You can’t perform that action at this time.
0 commit comments