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

5 lines
209 B
Kotlin
Vendored

// "Replace '@JvmField' with 'const'" "false"
// WITH_RUNTIME
// ERROR: JvmField has no effect on a private property
// ACTION: Remove explicit type specification
<caret>@JvmField private val number: Int? = 42