Skip to content

Commit 67b09c4

Browse files
author
Antonio Cunei
committed
Merged revisions 24570 via svnmerge from
https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r24570 | odersky | 2011-03-24 17:54:16 +0100 (Thu, 24 Mar 2011) | 1 line Moved Dynamic support to -Xexperimental. ........
1 parent 6c398fa commit 67b09c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scala/tools/nsc/typechecker/Typers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3493,7 +3493,7 @@ trait Typers extends Modes {
34933493

34943494
// try to expand according to Dynamic rules.
34953495

3496-
if (qual.tpe.widen.typeSymbol isNonBottomSubClass DynamicClass) {
3496+
if (settings.Xexperimental.value && (qual.tpe.widen.typeSymbol isNonBottomSubClass DynamicClass)) {
34973497
var dynInvoke = Apply(Select(qual, nme.applyDynamic), List(Literal(Constant(name.decode))))
34983498
context.tree match {
34993499
case Apply(tree1, args) if tree1 eq tree =>

0 commit comments

Comments
 (0)