diff options
author | Martin Odersky <odersky@gmail.com> | 2011-03-24 16:54:16 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-03-24 16:54:16 +0000 |
commit | 6b337cb02c6f03d71d7761c807ce5384d7592c15 (patch) | |
tree | 0a9917732f6f9e6f799b762a5a95a422da5a4c07 /src/compiler | |
parent | 469a08c1ed9b7e51470e29aaba641bd372e8966e (diff) | |
download | scala-6b337cb02c6f03d71d7761c807ce5384d7592c15.tar.gz scala-6b337cb02c6f03d71d7761c807ce5384d7592c15.tar.bz2 scala-6b337cb02c6f03d71d7761c807ce5384d7592c15.zip |
Moved Dynamic support to -Xexperimental.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 => |