Add tests for obsolete issues

#KT-38092 Obsolete
 #KT-38179 Obsolete
 #KT-35105 Obsolete
 #KT-36696 Obsolete
 #KT-36947 Obsolete
 #KT-37337 Obsolete
 #KT-37309 Obsolete
 #KT-37727 Obsolete
 #KT-37735 Obsolete
 #KT-37853 Obsolete
 #KT-37920 Obsolete
 #KT-37709 Obsolete
 #KT-37706 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2020-04-20 00:18:16 +03:00
parent 57597f5900
commit befa1e114c
36 changed files with 559 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE
// FILE: A.java
public class A {
public static <T, E extends Throwable> T compute(ThrowableComputable<T, E> action) throws E {
return (T) action;
}
}
// FILE: ThrowableComputable.java
public interface ThrowableComputable<T, E extends Throwable> {
T compute() throws E;
}
// FILE: test.kt
fun main() {
val headers = A.compute(
ThrowableComputable {
getCollection()
}
)
}
fun getCollection(): Collection<Int> = TODO()
+21
View File
@@ -0,0 +1,21 @@
package
public fun getCollection(): kotlin.collections.Collection<kotlin.Int>
public fun main(): kotlin.Unit
public open class A {
public constructor A()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
public open fun </*0*/ T : kotlin.Any!, /*1*/ E : kotlin.Throwable!> compute(/*0*/ action: ThrowableComputable<T!, E!>!): T!
}
public interface ThrowableComputable</*0*/ T : kotlin.Any!, /*1*/ E : kotlin.Throwable!> {
public abstract fun compute(): T!
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}