Create <out Any?> projections for raw Java types, not <*>

KT-3760 Internal compiler error with Java interoperability and ElasticSearch 0.90.2 (IllegalStateException, Type parameter descriptor in not initialized: T declared in ...)
 #KT-3760 Fixed

EA-44150 Type parameter descriptor in not initialized. Fixed
This commit is contained in:
Andrey Breslav
2013-07-09 21:04:46 +04:00
parent e566c3a738
commit 8d65613eed
3 changed files with 30 additions and 8 deletions
@@ -0,0 +1,13 @@
// FILE: Bad.java
class Bad<T extends Bad> {}
// FILE: X.java
class X {
Bad foo() {return null;}
}
// FILE: Usage.kt
fun foo(p: X) = p.foo()