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

12 lines
194 B
Kotlin
Vendored

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