diff options
author | Paul Phillips <paulp@improving.org> | 2011-03-19 19:55:59 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-03-19 19:55:59 +0000 |
commit | b503ea139abfd76218d4025f7a84b6202ca354c7 (patch) | |
tree | cbe5b5a27d4685a204da5ebb13ae3a50cc1c2bf4 /test | |
parent | aa0cc8e415cca88285b36e76842b759c59f66be7 (diff) | |
download | scala-b503ea139abfd76218d4025f7a84b6202ca354c7.tar.gz scala-b503ea139abfd76218d4025f7a84b6202ca354c7.tar.bz2 scala-b503ea139abfd76218d4025f7a84b6202ca354c7.zip |
I'm going to assume the patch I dropped off fiv...
I'm going to assume the patch I dropped off five months ago for #3938
was merely overlooked. Fixes an issue with java types which extend inner
classes. Closes #3938, review by odersky.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/bug3938/Parent.java | 9 | ||||
-rw-r--r-- | test/files/bug3938/UseParent.scala | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/bug3938/Parent.java b/test/files/bug3938/Parent.java new file mode 100644 index 0000000000..08fae330bb --- /dev/null +++ b/test/files/bug3938/Parent.java @@ -0,0 +1,9 @@ +public class Parent<A>{ + class I1 {} + class I2 extends Parent.I1 {} + + // OKAY: + class I3 extends I1 {} + static class I4 {} + static class I5 extends Parent.I4 {} +} diff --git a/test/files/bug3938/UseParent.scala b/test/files/bug3938/UseParent.scala new file mode 100644 index 0000000000..685d1a03a8 --- /dev/null +++ b/test/files/bug3938/UseParent.scala @@ -0,0 +1,7 @@ +object UseParent { + classOf[Parent[AnyRef]#I2] + + // OKAY + classOf[Parent[AnyRef]#I3] + classOf[Parent.I5] +} |