Test for obsolete KT-6382: Incorrect bridge method calls are generated for member extension functions with default parameters
#KT-6382 Obsolete
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
fun box(): String {
|
||||
return if (A().run() == "Aabc") "OK" else "fail"
|
||||
}
|
||||
|
||||
public class A {
|
||||
fun run() =
|
||||
with ("abc") {
|
||||
show()
|
||||
}
|
||||
|
||||
private fun String.show(p: Boolean = false): String = getName() + this
|
||||
|
||||
private fun getName() = "A"
|
||||
}
|
||||
Reference in New Issue
Block a user