mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
Code clean, small refactorings and tests
#KT-8987 Fixed
This commit is contained in:
12
compiler/testData/codegen/bytecodeText/argumentOrder/sameOrderWithDefault.kt
vendored
Normal file
12
compiler/testData/codegen/bytecodeText/argumentOrder/sameOrderWithDefault.kt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
class A {
|
||||
fun test(x: String? = "x", a: String?, b: String?, y: String? = "y") {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(a = "O", b = "K")
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
// Test there is no argument reordering when call site argument order same as declaration one
|
||||
// 9 LOAD
|
||||
// 2 STORE
|
||||
Reference in New Issue
Block a user