diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-13 10:47:05 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-13 10:47:05 -0800 |
commit | a68b2e08c95536863576c345047c47d163ec022a (patch) | |
tree | d826d718858a8bf4b6382eb37b94b73a32c9f458 /test/pending | |
parent | 34c8a00da7a14803a7f38927ba11926561b2a188 (diff) | |
parent | 6f42bd6881f9b1a6fa25d744cded38f53058538c (diff) | |
download | scala-a68b2e08c95536863576c345047c47d163ec022a.tar.gz scala-a68b2e08c95536863576c345047c47d163ec022a.tar.bz2 scala-a68b2e08c95536863576c345047c47d163ec022a.zip |
Merge pull request #3242 from retronym/ticket/8046
SI-8046 BaseTypeSeq fixes with aliases
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/pos/t6161.scala | 22 |
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 +} |