Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/kt51157.kt
T
Ilmir Usmanov 47ee0e5b0a Get type arguments from supertype in supercall
Otherwise, when the function has inline class parameter, we get ICE.
We do not get the error without inline class parameter, since we
substitute type parameters in limited situations, which includes
inline class lowering.

 #KT-51157 Fixed
2022-02-10 10:40:55 +01:00

17 lines
442 B
Kotlin
Vendored

// WITH_STDLIB
interface ByteArrayParser<Output> : GenericParser<ByteArray, Output> {
override fun repExactly(n: UInt): ByteArrayParser<List<Output>> =
super.repExactly(n) as ByteArrayParser<List<Output>>
}
interface GenericParser<Input, Output> {
fun repExactly(n: UInt): GenericParser<Input, List<Output>> {
TODO()
}
}
fun box(): String {
val parser = object : ByteArrayParser<String> {}
return "OK"
}