summaryrefslogtreecommitdiff
path: root/test/files/pos/t6551.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t6551.scala')
-rw-r--r--test/files/pos/t6551.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t6551.scala b/test/files/pos/t6551.scala
new file mode 100644
index 0000000000..fb68663809
--- /dev/null
+++ b/test/files/pos/t6551.scala
@@ -0,0 +1,13 @@
+import language.dynamics
+
+object Test {
+ def main(args: Array[String]) {
+ class Lenser[T] extends Dynamic {
+ def selectDynamic(propName: String) = ???
+ }
+
+ def lens[T] = new Lenser[T]
+
+ val qq = lens[String]
+ }
+}