JVM IR: erase parameter default value when copying it to bridge
#KT-48391 Fixed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
class B : A<String>
|
||||
|
||||
fun box(): String =
|
||||
B().f()!!
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
interface A<T> {
|
||||
fun f(s: String = RESULT): T? =
|
||||
s as T
|
||||
|
||||
companion object {
|
||||
private val RESULT = "OK"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user