From edc9edb79bcc9cb4581037ae0e8fb8907739bef6 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 8 Dec 2013 09:16:30 +0100 Subject: SI-8046 Fix baseTypeSeq in presence of type aliases --- test/pending/pos/t8046c.scala | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/pending/pos/t8046c.scala (limited to 'test/pending') 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) + // ^ +} + -- cgit v1.2.3