Files
kotlin-fork/idea/testData/codeInsight/outOfBlock/InObjectPrivateFunctionWithoutInference.kt
T
Vladimir Dolzhenko ddba8e7691 Extend incremental analysis to object declaration
Fixed #KT-37250
2020-03-10 09:08:47 +01:00

12 lines
196 B
Kotlin
Vendored

// 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