From 6b337cb02c6f03d71d7761c807ce5384d7592c15 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 24 Mar 2011 16:54:16 +0000 Subject: Moved Dynamic support to -Xexperimental. --- src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler') diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index d2d9257989..b5e58a9dae 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -3493,7 +3493,7 @@ trait Typers extends Modes { // try to expand according to Dynamic rules. - if (qual.tpe.widen.typeSymbol isNonBottomSubClass DynamicClass) { + if (settings.Xexperimental.value && (qual.tpe.widen.typeSymbol isNonBottomSubClass DynamicClass)) { var dynInvoke = Apply(Select(qual, nme.applyDynamic), List(Literal(Constant(name.decode)))) context.tree match { case Apply(tree1, args) if tree1 eq tree => -- cgit v1.2.3