From d5ae4c69b0a0700fe7a35e96516eaea5e7182322 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Fri, 26 Feb 2010 10:50:32 +0000 Subject: closes #2421 -- now also deals with chained imp... closes #2421 -- now also deals with chained implicits no review --- test/files/pos/t2421c.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/files/pos/t2421c.scala (limited to 'test/files/pos/t2421c.scala') diff --git a/test/files/pos/t2421c.scala b/test/files/pos/t2421c.scala new file mode 100644 index 0000000000..755e6a39f0 --- /dev/null +++ b/test/files/pos/t2421c.scala @@ -0,0 +1,17 @@ +object Test { + class A + class B + class C + class F[X] + + def f(implicit aa: F[A]) = println(aa) + + implicit def a : F[A] = new F[A]() + + // generalised from t2421b to verify we check enough + class G[X] + implicit def g[X] = new G[X]() + implicit def b[X <: B](implicit mx: G[X]) = new F[X]() + + f +} \ No newline at end of file -- cgit v1.2.3