Files
kotlin-fork/idea/testData/codeInsight/outOfBlock/InPropertyWithFunctionLiteral.kt
T
Nikolay Krasko 798a6bf689 Temp workaround: force out-of-block modification for properties with nullable types
Initializers for properties with nullable types are analyzed with binding context common for all declarations.
This can cause invalid elements are left in the cache guarded with out-of-block  modification tracker. This workaround forces increment for such cases.
2014-10-22 18:18:09 +04:00

4 lines
61 B
Kotlin

// TRUE
class Test {
val a : () -> Int = { <caret>pri }
}