JS: refactor generation of functions with optional parameters. Fix #KT-7302, #KT-13888

This commit is contained in:
Alexey Andreev
2016-09-16 15:40:12 +03:00
parent 4b3cf432dc
commit d2050ace72
24 changed files with 428 additions and 256 deletions
@@ -0,0 +1,13 @@
// MODULE: lib
// FILE: lib.kt
public interface I {
public fun f(p: String = "O"): String
}
// MODULE: main(lib)
// FILE: main.kt
public class C : I {
override fun f(p: String) = p + "K"
}
fun box() = C().f()