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
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user