summaryrefslogtreecommitdiff
path: root/test/files/pos/t3249
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2010-07-08 15:58:56 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2010-07-08 15:58:56 +0000
commit0cbeaf17d85d4925939d51938826c318db667c50 (patch)
treeb2e6ef02eff333bbe4bd97ccc585294c2f098169 /test/files/pos/t3249
parent3c85f135693904cc0f433406c88842aa79e0140e (diff)
downloadscala-0cbeaf17d85d4925939d51938826c318db667c50.tar.gz
scala-0cbeaf17d85d4925939d51938826c318db667c50.tar.bz2
scala-0cbeaf17d85d4925939d51938826c318db667c50.zip
closes #3249.
review by dragos
Diffstat (limited to 'test/files/pos/t3249')
-rw-r--r--test/files/pos/t3249/Test.java5
-rw-r--r--test/files/pos/t3249/a.scala11
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t3249/Test.java b/test/files/pos/t3249/Test.java
new file mode 100644
index 0000000000..4cc7cb2ab5
--- /dev/null
+++ b/test/files/pos/t3249/Test.java
@@ -0,0 +1,5 @@
+public class Test {
+ public static void meh() {
+ new A<Integer>().f();
+ }
+} \ No newline at end of file
diff --git a/test/files/pos/t3249/a.scala b/test/files/pos/t3249/a.scala
new file mode 100644
index 0000000000..0394464549
--- /dev/null
+++ b/test/files/pos/t3249/a.scala
@@ -0,0 +1,11 @@
+class A[U] { def f[T] = { class X extends A[T] } }
+
+
+/*
+$ scalac a.scala
+$ javac -cp .:$SCALA_HOME/lib/scala-library.jar -Xprint 'A$X$1'
+
+ public class X$1 extends A<java.lang.Object> implements scala.ScalaObject {
+ public X$1(A<U> null);
+ }
+*/ \ No newline at end of file