diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-29 19:35:15 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-10-29 19:35:15 +0000 |
commit | 2d3fe5733cbc6bcf06892c8ee3cb19f7987f6b6a (patch) | |
tree | 6e7418bf49e9bf8dbcd05e233cc5b5c5f84497cd /test/files | |
parent | 48a26b9c2be3cb5390dafa8a13620c91fab0167d (diff) | |
download | scala-2d3fe5733cbc6bcf06892c8ee3cb19f7987f6b6a.tar.gz scala-2d3fe5733cbc6bcf06892c8ee3cb19f7987f6b6a.tar.bz2 scala-2d3fe5733cbc6bcf06892c8ee3cb19f7987f6b6a.zip |
Fix for crasher in explicitouter.
Closes SI-4970, review by moors.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t4970.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t4970.scala b/test/files/pos/t4970.scala new file mode 100644 index 0000000000..f2f284f919 --- /dev/null +++ b/test/files/pos/t4970.scala @@ -0,0 +1,13 @@ +trait OuterClass[V <: OuterClass[V]#InnerClass] { + trait InnerClass {self: V => + def method = () + } +} + +trait SubOuterClass[T <: SubOuterClass[T]#SubInnerClass] extends OuterClass[T] { + class SubInnerClass extends super.InnerClass {self: T => } +} + +trait SubOuterClass2[T <: SubOuterClass2[T]#SubInnerClass2] extends OuterClass[T] { + class SubInnerClass2 extends super.InnerClass {self: InnerClass with T => } +} |