diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-02-26 10:50:32 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-02-26 10:50:32 +0000 |
commit | d5ae4c69b0a0700fe7a35e96516eaea5e7182322 (patch) | |
tree | 5037d56ef694eb69af4c6a60f92231816a8b258f /test | |
parent | 0dd2f30edbb44d526be60676fef9ba05a9e3dfbf (diff) | |
download | scala-d5ae4c69b0a0700fe7a35e96516eaea5e7182322.tar.gz scala-d5ae4c69b0a0700fe7a35e96516eaea5e7182322.tar.bz2 scala-d5ae4c69b0a0700fe7a35e96516eaea5e7182322.zip |
closes #2421 -- now also deals with chained imp...
closes #2421 -- now also deals with chained implicits
no review
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t2421c.scala | 17 |
1 files changed, 17 insertions, 0 deletions
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 |