Files
kotlin-fork/idea/testData/quickfix/replaceJvmFieldWithConst/nonConstantInitializer.kt
T
Vyacheslav Gerasimov dcae66a727 Add quickfix for INAPPLICABLE_JVM_FIELD
replaces with 'const' when possible

#KT-10981 Fixed
2017-04-20 12:10:20 +03:00

6 lines
235 B
Kotlin
Vendored

// "Replace '@JvmField' with 'const'" "false"
// WITH_RUNTIME
// ERROR: JvmField has no effect on a private property
// ACTION: Remove explicit type specification
fun getText() = ""
<caret>@JvmField private val text: String = getText()