Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/thisInClassAlreadyExistsBefore.kt
T
Dmitry Gridin c89d1af9fa Improve Create property from Usage
Place generated property next to other properties
 #KT-14886 Fixed
2019-02-27 00:07:55 +03:00

13 lines
189 B
Kotlin
Vendored

// "Create property 'foo'" "true"
// ERROR: Property must be initialized or be abstract
class Test {
val foo1 = 1
fun test(): Int {
return <caret>foo
}
}
val bar = 1