Add tests for obsolete issues
(Test for KT-37331 is added to multiplatform/defaultArguments/suspend.kt.) #KT-30080 #KT-33641 #KT-36237 #KT-36952 #KT-37331 #KT-38920 #KT-39256 #KT-42415 #KT-44636 #KT-45704 #KT-47084 #KT-47894
This commit is contained in:
compiler/testData/codegen/box/diagnostics/functions/tailRecursion/kt47084_lambdaInDefaultArgument.kt
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
fun f(block: () -> Unit): String {
|
||||
block()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
tailrec fun foo(a: String = run { f {} }): String =
|
||||
if (a.length == 0) foo() else a
|
||||
|
||||
fun box(): String = foo()
|
||||
Reference in New Issue
Block a user