diff options
author | Paul Phillips <paulp@improving.org> | 2013-09-18 07:25:59 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-09-18 07:25:59 -0700 |
commit | a8543ef28f8fc0152208f4eef763344657bf9e5a (patch) | |
tree | c82662e321ec6c291edbd51e30ff93bc6d93ce92 /test/files/pos/t4970b.scala | |
parent | d45a3c8cc8e9f1d95d797d548a85abd8597f5bc7 (diff) | |
parent | 0f67e8dddcb8b087560fed90339d9235179dd1ea (diff) | |
download | scala-a8543ef28f8fc0152208f4eef763344657bf9e5a.tar.gz scala-a8543ef28f8fc0152208f4eef763344657bf9e5a.tar.bz2 scala-a8543ef28f8fc0152208f4eef763344657bf9e5a.zip |
Merge pull request #2955 from retronym/ticket/7853
SI-7853 Regression in explicit outer
Diffstat (limited to 'test/files/pos/t4970b.scala')
-rw-r--r-- | test/files/pos/t4970b.scala | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/files/pos/t4970b.scala b/test/files/pos/t4970b.scala new file mode 100644 index 0000000000..cf9a6a6ae9 --- /dev/null +++ b/test/files/pos/t4970b.scala @@ -0,0 +1,32 @@ +object Traits { + trait OuterClass[V <: OuterClass[V]#InnerClass] { + trait InnerClass {self: V => + def method = () + } + } + + trait SubOuterClass[T <: SubOuterClass[T]#SubInnerClass] extends OuterClass[T] { + trait SubInnerClass extends super.InnerClass {self: T => } + } + + trait SubOuterClass2[T <: SubOuterClass2[T]#SubInnerClass2] extends OuterClass[T] { + trait SubInnerClass2 extends super.InnerClass {self: InnerClass with T => } + } + +} + +// object Classes { +// class OuterClass[V <: OuterClass[V]#InnerClass] { +// class InnerClass {self: V => +// def method = () +// } +// } + +// class SubOuterClass[T <: SubOuterClass[T]#SubInnerClass] extends OuterClass[T] { +// class SubInnerClass extends super.InnerClass {self: T => } +// } + +// class SubOuterClass2[T <: SubOuterClass2[T]#SubInnerClass2] extends OuterClass[T] { +// class SubInnerClass2 extends super.InnerClass {self: InnerClass with T => } +// } +// } |