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:
Andrey Breslav
2015-01-30 18:49:30 +03:00
parent 8d5a6d729e
commit da639039bd
61 changed files with 996 additions and 847 deletions
@@ -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<*>) {}