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 bb7069c commit f992c14Copy full SHA for f992c14
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