summaryrefslogtreecommitdiff
path: root/test/files/run/t6320.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-05 12:34:13 -0800
committerPaul Phillips <paulp@improving.org>2012-12-05 13:13:55 -0800
commitc42c1742e26dc47f940e4003e4ca25e8c738796d (patch)
tree637acdd45dbf93ba87ae6cb67d4237da652ac8c1 /test/files/run/t6320.scala
parent4b2330b3d3db4263a8b1e19b792596dd60d79045 (diff)
parentb84ecc5d1afcb71dd4047de9f1cc49060835d3df (diff)
downloadscala-c42c1742e26dc47f940e4003e4ca25e8c738796d.tar.gz
scala-c42c1742e26dc47f940e4003e4ca25e8c738796d.tar.bz2
scala-c42c1742e26dc47f940e4003e4ca25e8c738796d.zip
Merge branch 'merge-2.10-wip' into merge-2.10
* merge-2.10-wip: Fixing OSGi distribution. Fix for rangepos crasher. SI-6685 fixes error handling in typedApply Test cases for SI-5726, SI-5733, SI-6320, SI-6551, SI-6722. Asserts about Tree qualifiers. Fix for SI-6731, dropped trees in selectDynamic. neg test added SI-5753 macros cannot be loaded when inherited from a class or a trait Take advantage of the margin stripping interpolator. Adds a margin stripping string interpolator. SI-6718 fixes a volatile test Mark pattern matcher synthetics as SYNTHETIC. Set symbol flags at creation. Fix for SI-6687, wrong isVar logic. Fix for SI-6706, Symbol breakage under GC. findEntry implementation code more concise and DRYer. Fix for SI-6357, cycle with value classes. Refactoring of adaptMethod SI-6677 Insert required cast in `new qual.foo.T` Conflicts: src/compiler/scala/tools/nsc/transform/Erasure.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala src/reflect/scala/reflect/internal/SymbolTable.scala src/reflect/scala/reflect/internal/util/package.scala test/files/neg/gadts1.check
Diffstat (limited to 'test/files/run/t6320.scala')
-rw-r--r--test/files/run/t6320.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t6320.scala b/test/files/run/t6320.scala
new file mode 100644
index 0000000000..26085a3d7d
--- /dev/null
+++ b/test/files/run/t6320.scala
@@ -0,0 +1,9 @@
+import scala.tools.partest.ReplTest
+
+object Test extends ReplTest {
+ def code = """
+import scala.language.dynamics
+class Dyn(m: Map[String, Any]) extends Dynamic { def selectDynamic[T](s: String): T = m(s).asInstanceOf[T] }
+new Dyn(Map("foo" -> 10)).foo[Int]
+ """
+}