diff options
author | odersky <odersky@gmail.com> | 2017-03-09 14:08:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 14:08:23 +0100 |
commit | e28d8ee6819f39eb8e0479a53c63c241affe864c (patch) | |
tree | 7bf21cae3c776f6ab6d37f9306c91cb54f805858 /tests | |
parent | 7f6e01d0019dd9bea5535ca17c6283e64e84fecb (diff) | |
parent | e0b6f397e5476a6a0ca95e81dd3a7a6711f8119e (diff) | |
download | dotty-e28d8ee6819f39eb8e0479a53c63c241affe864c.tar.gz dotty-e28d8ee6819f39eb8e0479a53c63c241affe864c.tar.bz2 dotty-e28d8ee6819f39eb8e0479a53c63c241affe864c.zip |
Merge pull request #2070 from dotty-staging/fix/erasedLub
Fix bug in erasedLub leading to incorrect signatures
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/erased-lub-2.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pos/erased-lub-2.scala b/tests/pos/erased-lub-2.scala new file mode 100644 index 000000000..f0f9b27cc --- /dev/null +++ b/tests/pos/erased-lub-2.scala @@ -0,0 +1,15 @@ +trait Foo + +trait PF[A, +B] { + def apply(x: A): B +} + +object Test { + def orElse2[A1, B1 >: Foo](that: PF[A1, B1]): PF[A1, B1] = ??? + + def identity[E]: PF[E, E] = ??? + + def foo: PF[Foo, Foo] = ??? + + def bla(foo: Foo) = orElse2(identity).apply(foo) +} |