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.
1 parent 6c398fa commit 67b09c4Copy full SHA for 67b09c4
src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -3493,7 +3493,7 @@ trait Typers extends Modes {
3493
3494
// try to expand according to Dynamic rules.
3495
3496
- if (qual.tpe.widen.typeSymbol isNonBottomSubClass DynamicClass) {
+ if (settings.Xexperimental.value && (qual.tpe.widen.typeSymbol isNonBottomSubClass DynamicClass)) {
3497
var dynInvoke = Apply(Select(qual, nme.applyDynamic), List(Literal(Constant(name.decode))))
3498
context.tree match {
3499
case Apply(tree1, args) if tree1 eq tree =>
0 commit comments