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