Files
kotlin/compiler/testData/codegen/box/inlineClasses/functionNameMangling/overridingMethodInGenericClass.kt
2020-03-24 18:58:19 +03:00

13 lines
248 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
abstract class GenericBase<T> {
abstract fun foo(x: T): T
}
inline class Str(val str: String)
class Derived : GenericBase<Str>() {
override fun foo(x: Str): Str = x
}
fun box() = Derived().foo(Str("OK")).str