855a0b3493
It helps to catch TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM errors because they appear after return type calculation began #KT-6271 Fixed #KT-3272 Obsolete
12 lines
248 B
Kotlin
Vendored
12 lines
248 B
Kotlin
Vendored
// See KT-6271
|
|
fun foo() {
|
|
fun fact(n: Int) = {
|
|
if (n > 0) {
|
|
<!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!>fact(n - 1)<!> <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>*<!> n
|
|
}
|
|
else {
|
|
1
|
|
}
|
|
}
|
|
}
|