aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2421c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t2421c.scala')
-rw-r--r--tests/pos/t2421c.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pos/t2421c.scala b/tests/pos/t2421c.scala
new file mode 100644
index 000000000..bd24cacd7
--- /dev/null
+++ b/tests/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]: Test.G[X] = new G[X]()
+ implicit def b[X <: B](implicit mx: G[X]): Test.F[X] = new F[X]()
+
+ f
+}