mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
10 lines
215 B
Kotlin
Vendored
10 lines
215 B
Kotlin
Vendored
// 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)
|
|
}
|