Fix for KT-26164 (#1954)

This commit is contained in:
Sergey Bogolepov
2018-08-28 15:01:58 +03:00
committed by GitHub
parent aee041fc7a
commit 31e64442d7
2 changed files with 26 additions and 22 deletions
@@ -20,6 +20,7 @@ fun box() {
Test5().Inner().test()
42.test6()
assertEquals(inlineFunction("OK"), "OK,0,null")
}
expect fun test1(x: Int = 42): Int
@@ -66,3 +67,9 @@ expect fun Int.test6(arg: Int = this)
actual fun Int.test6(arg: Int) {
assertEquals(arg, this)
}
// Default parameter in inline function.
expect inline fun inlineFunction(a: String, b: Int = 0, c: () -> Double? = { null }): String
actual inline fun inlineFunction(a: String, b: Int, c: () -> Double?): String = a + "," + b + "," + c()