KT-6698 Bad class file when using a star-projection on a Java's recursive generic parameter
#KT-6698 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package test;
|
||||
|
||||
public class StarProjection {
|
||||
void foo(K<?> k) {
|
||||
k.foo(null);
|
||||
TestPackage.bar(null);
|
||||
new Sub().foo(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
open class K<out T: K<T>> {
|
||||
fun foo(k: K<*>) {}
|
||||
fun foo(): K<*> = null!!
|
||||
}
|
||||
|
||||
class Sub: K<K<*>>()
|
||||
|
||||
fun bar(k: K<*>) {}
|
||||
Reference in New Issue
Block a user