Extend incremental analysis to object declaration

Fixed #KT-37250
This commit is contained in:
Vladimir Dolzhenko
2020-03-04 17:35:45 +01:00
parent ae208f58a4
commit ddba8e7691
10 changed files with 142 additions and 15 deletions
@@ -0,0 +1,12 @@
// 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