Add quickfix for INAPPLICABLE_JVM_FIELD
replaces with 'const' when possible #KT-10981 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "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()
|
||||
Reference in New Issue
Block a user