Add test for KT-46225

This commit is contained in:
Roman Artemev
2021-09-27 19:37:13 +03:00
committed by TeamCityServer
parent 38f21b7139
commit 0621b79505
9 changed files with 58 additions and 0 deletions
@@ -0,0 +1,15 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: WASM
// KT-46225
class C
fun box(): String =
C().foo("O")
tailrec fun C.foo(x: String, f: (String) -> String = { bar(it) }): String =
if (x.length < 2) foo(f(x)) else x
fun C.bar(s: String): String =
s + "K"