Skip to content

Commit 27a7485

Browse files
committed
polish
1 parent 1d32763 commit 27a7485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ class ValueClassParameterMayNotBeCallByName(valueClass: Symbol, param: Symbol)(u
18151815

18161816
class ValueClassCannotExtendAliasOfAnyVal(valueClass: Symbol, alias: Symbol)(using Context)
18171817
extends SyntaxMsg(ValueClassCannotExtendAliasOfAnyValID) {
1818-
def msg(using Context) = i"""Value class cannot extend from an alias $alias of ${hl("AnyVal")} """
1818+
def msg(using Context) = i"""A value class cannot extend a type alias ($alias) of ${hl("AnyVal")}"""
18191819
def explain(using Context) = ""
18201820
}
18211821

0 commit comments

Comments
 (0)