Add test for KT-46225
This commit is contained in:
committed by
TeamCityServer
parent
38f21b7139
commit
0621b79505
@@ -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"
|
||||
Reference in New Issue
Block a user