Fixed problem with overriding method with non-trivial raw type (when erased type parameter has upper bound)

Also added cases for the code which was changed.
This commit is contained in:
Evgeny Gerashchenko
2014-02-06 00:09:59 +04:00
parent 2d31d62163
commit ce7e0a7457
12 changed files with 110 additions and 16 deletions
@@ -0,0 +1,15 @@
//FILE: Foo.java
public class Foo<T extends CharSequence> {
}
//FILE: Bar.java
public interface Bar {
void f(Foo f);
}
//FILE: a.kt
class BarImpl: Bar {
override fun f(f: Foo<out CharSequence?>?) {
throw UnsupportedOperationException()
}
}