diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-12-08 09:16:30 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-12-09 15:47:23 +0100 |
commit | edc9edb79bcc9cb4581037ae0e8fb8907739bef6 (patch) | |
tree | b8f41b134bd52bd9aeef0bbc18de9f4bc49b6f27 /test/pending | |
parent | 75cc6cf256df9e152eaec771121ce0db9f7039f8 (diff) | |
download | scala-edc9edb79bcc9cb4581037ae0e8fb8907739bef6.tar.gz scala-edc9edb79bcc9cb4581037ae0e8fb8907739bef6.tar.bz2 scala-edc9edb79bcc9cb4581037ae0e8fb8907739bef6.zip |
SI-8046 Fix baseTypeSeq in presence of type aliases
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/pos/t8046c.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pending/pos/t8046c.scala b/test/pending/pos/t8046c.scala new file mode 100644 index 0000000000..9a8616828d --- /dev/null +++ b/test/pending/pos/t8046c.scala @@ -0,0 +1,19 @@ +trait One { + type Op[A] + type Alias[A] = Op[A] +} + +trait Three extends One { + trait Op[A] extends (A => A) + + def f1(f: Op[Int]) = f(5) + def f2(f: Alias[Int]) = f(5) + def f3[T <: Op[Int]](f: T) = f(5) + def f4[T <: Alias[Int]](f: T) = f(5) + // ./a.scala:12: error: type mismatch; + // found : Int(5) + // required: T1 + // def f4[T <: Alias[Int]](f: T) = f(5) + // ^ +} + |