Files
kotlin-fork/idea/testData/codeInsight/outOfBlock/InClassInUninitializedPropertyAccessor.kt
T
2019-11-27 13:43:10 +01:00

11 lines
249 B
Kotlin
Vendored

// OUT_OF_CODE_BLOCK: FALSE
// TYPE: '//'
// ERROR: Property must be initialized
class InClassInUninitializedPropertyAccessor {
var prop1: Int
set(value) {
<caret> println("prop.setter")
field = value
}
}