We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
msg
1 parent f7cdca7 commit 2b653a8Copy full SHA for 2b653a8
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -546,7 +546,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object.
546
def dynamicsEnabled =
547
featureEnabled(defn.LanguageModuleClass, nme.dynamics)
548
549
- def testScala2Mode(msg: String, pos: Position) = {
+ def testScala2Mode(msg: => String, pos: Position) = {
550
if (scala2Mode) migrationWarning(msg, pos)
551
scala2Mode
552
}
0 commit comments