diff options
author | odersky <odersky@gmail.com> | 2014-06-20 15:15:16 +0200 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2014-06-20 15:15:16 +0200 |
commit | a8cb929a368f01819c16393a97291e82bc4a2738 (patch) | |
tree | 82af4c43d1167cc0d897d31b1afa855c068f856e /tests/pos/t2421c.scala | |
parent | 7bc5cd18ee4f881f223e9a317e6c6a329942d5af (diff) | |
parent | c2175ec910165308e81c48bd8ca8910c50862be4 (diff) | |
download | dotty-a8cb929a368f01819c16393a97291e82bc4a2738.tar.gz dotty-a8cb929a368f01819c16393a97291e82bc4a2738.tar.bz2 dotty-a8cb929a368f01819c16393a97291e82bc4a2738.zip |
Merge pull request #136 from dotty-staging/fix/systematic-prototypes
Fix/systematic prototypes
Diffstat (limited to 'tests/pos/t2421c.scala')
-rw-r--r-- | tests/pos/t2421c.scala | 17 |
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 +} |