Skip to content

Commit 81ec565

Browse files
committed
Change error message
1 parent ae8f80e commit 81ec565

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Checking.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ object Checking {
504504
if (param.is(Mutable))
505505
ctx.error(ValueClassParameterMayNotBeAVar(clazz, param), param.pos)
506506
if (param.info.isPhantom)
507-
ctx.error("value class first parameter must not be phantom", param.pos)
507+
ctx.error("First parameter of value class must not be phantom", param.pos)
508508
else if (param.is(Unused))
509-
ctx.error("value class first parameter cannot be `unused`", param.pos)
509+
ctx.error("First parameter of value class cannot be `unused`", param.pos)
510510
else {
511511
for (p <- params if !(p.info.isPhantom || p.is(Unused)))
512512
ctx.error("value class can only have one non `unused` parameter", p.pos)

0 commit comments

Comments
 (0)