diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-03-26 13:26:30 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-03-26 13:26:30 +0100 |
commit | 4fe8cb687f21c57b95892f8e6e4cf24459ad5438 (patch) | |
tree | 45722cce459b83ea453bd33de7ef9531ba960341 /test/files/run/t9200 | |
parent | 4783a25d3068c2f756b8517b69a95b5d77d24654 (diff) | |
parent | 5471f011f85fef82cbe8bebb0c5f91b980031c5f (diff) | |
download | scala-4fe8cb687f21c57b95892f8e6e4cf24459ad5438.tar.gz scala-4fe8cb687f21c57b95892f8e6e4cf24459ad5438.tar.bz2 scala-4fe8cb687f21c57b95892f8e6e4cf24459ad5438.zip |
Merge pull request #4374 from retronym/ticket/9200
SI-9200 Fix Java generic signatures for refined types
Diffstat (limited to 'test/files/run/t9200')
-rw-r--r-- | test/files/run/t9200/Test.java | 6 | ||||
-rw-r--r-- | test/files/run/t9200/test.scala | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t9200/Test.java b/test/files/run/t9200/Test.java new file mode 100644 index 0000000000..8ff0314f6c --- /dev/null +++ b/test/files/run/t9200/Test.java @@ -0,0 +1,6 @@ +public class Test { + public static void main(String[] args) { + new C1(new C2()); // Was NoSuchMethodError + } +} + diff --git a/test/files/run/t9200/test.scala b/test/files/run/t9200/test.scala new file mode 100644 index 0000000000..6fa7e91571 --- /dev/null +++ b/test/files/run/t9200/test.scala @@ -0,0 +1,12 @@ +trait W + +trait T1 +trait T2 extends T1 + +object O1 { + type t = T1 with T2 +} + +class C1[w<:W](o: O1.t) + +class C2 extends T1 with T2 |