47ee0e5b0a
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
17 lines
442 B
Kotlin
Vendored
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"
|
|
} |