KT-43525 forbid @JvmOverloads on mangled funs and hidden constructors

This commit is contained in:
Dmitry Petrov
2020-11-24 14:22:47 +03:00
parent ca78261d7f
commit 3a166f3592
18 changed files with 218 additions and 26 deletions
@@ -0,0 +1,10 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
inline class Str(val s: String)
@JvmOverloads
fun test(so: String = "O", sk: String = "K") = Str(so + sk)
fun box(): String =
test().s