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

8 lines
313 B
Kotlin
Vendored

// "Replace '@JvmField' with 'const'" "false"
// WITH_RUNTIME
// ERROR: This annotation is not applicable to target 'top level property without backing field or delegate'
// ACTION: Make internal
// ACTION: Make private
// ACTION: Remove explicit type specification
<caret>@JvmField val number: Int
get() = 42