summaryrefslogtreecommitdiff
path: root/test/pending/pos/t6161.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-12-08 09:19:14 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-12-09 15:47:23 +0100
commit0de991ffea7c0d461cb4435fb8385c52ee39f7e3 (patch)
tree04cd0e922686d6e18dd57810d3d6591fe7283e01 /test/pending/pos/t6161.scala
parentedc9edb79bcc9cb4581037ae0e8fb8907739bef6 (diff)
downloadscala-0de991ffea7c0d461cb4435fb8385c52ee39f7e3.tar.gz
scala-0de991ffea7c0d461cb4435fb8385c52ee39f7e3.tar.bz2
scala-0de991ffea7c0d461cb4435fb8385c52ee39f7e3.zip
Pending test for SI-6161
Not solved with base type dealiasing
Diffstat (limited to 'test/pending/pos/t6161.scala')
-rw-r--r--test/pending/pos/t6161.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/pending/pos/t6161.scala b/test/pending/pos/t6161.scala
new file mode 100644
index 0000000000..5783cc85f2
--- /dev/null
+++ b/test/pending/pos/t6161.scala
@@ -0,0 +1,22 @@
+object t6161 {
+ trait N {
+ type Name
+ }
+
+ trait N1 extends N {
+ class Name {
+ type ThisNameType <: Name
+ def encode: ThisNameType = ???
+ }
+ }
+
+ trait S {
+ self: N => // change to N1 and it compiles
+ type NameType <: Name
+ }
+
+ object g extends S with N1
+
+ val n1: g.NameType = ???
+ val n2: g.Name = n1.encode
+}