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:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user