Add regression test for KT-17640

This commit is contained in:
Ilmir Usmanov
2017-11-07 12:09:50 +03:00
parent ad80d1239f
commit 0f9a21d429
3 changed files with 26 additions and 0 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
open class AbstractStuff() {
inline suspend fun<reified T> hello(value: T): T = println("Hello, ${T::class}").let { value }
}
class Stuff: AbstractStuff() {
suspend fun foo() = hello(40)
}
@@ -0,0 +1,11 @@
@kotlin.Metadata
public class AbstractStuff {
public method <init>(): void
private final method hello(p0: java.lang.Object, p1: kotlin.coroutines.experimental.Continuation): java.lang.Object
}
@kotlin.Metadata
public final class Stuff {
public method <init>(): void
public final @org.jetbrains.annotations.Nullable method foo(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.experimental.Continuation): java.lang.Object
}