Files
openide/plugins/kotlin/idea/tests/testData/codeInsight/outOfBlock/InObjectPrivateFunctionWithoutInference.kt
Vladimir Dolzhenko 556fcb325b Extend incremental analysis to object declaration
Fixed #KT-37250

GitOrigin-RevId: 47cf642b53d5433e335819d9b1a9da3dcc67f27f
2020-03-10 11:08:47 +03:00

12 lines
196 B
Kotlin

// OUT_OF_CODE_BLOCK: TRUE
// as it's a object body not a named function body
object A {
fun foo(): Int = 12
private fun bar(): Int = foo() + <caret>
}
// TYPE: 1
// SKIP_ANALYZE_CHECK