Skip to content

Commit 09f0093

Browse files
Simplify migration warning message
1 parent cd2ddcc commit 09f0093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ object Checking {
402402
fail(NativeMembersMayNotHaveImplementation(sym))
403403
}
404404
if (sym.hasAnnotation(defn.CompileTimeOnlyParamAnnot))
405-
ctx.migrationWarning("`@compileTimeOnly(msg)` will be replaced by `scala.compiletime.error(msg)` or `erased`", sym.sourcePos)
405+
ctx.migrationWarning("`@compileTimeOnly(msg)` will be replaced by `scala.compiletime.error(msg)`", sym.sourcePos)
406406
else if (sym.is(Deferred, butNot = Param) && !sym.isType && !sym.isSelfSym) {
407407
if (!sym.owner.isClass || sym.owner.is(Module) || sym.owner.isAnonymousClass)
408408
fail(OnlyClassesCanHaveDeclaredButUndefinedMembers(sym))

0 commit comments

Comments
 (0)