Files
kotlin-fork/idea/testData/quickfix/replaceJvmFieldWithConst/stringTemplateWithVal.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

7 lines
248 B
Kotlin
Vendored

// "Replace '@JvmField' with 'const'" "false"
// WITH_RUNTIME
// ERROR: JvmField has no effect on a private property
// ACTION: Add 'const' modifier
// ACTION: Specify type explicitly
val three = 3
<caret>@JvmField private val text = "${2 + three}"