Add quickfix for INAPPLICABLE_JVM_FIELD
replaces with 'const' when possible #KT-10981 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Replace '@JvmField' with 'const'" "false"
|
||||
// WITH_RUNTIME
|
||||
// ERROR: JvmField has no effect on a private property
|
||||
// ACTION: Move to constructor
|
||||
// ACTION: Specify type explicitly
|
||||
class Foo {
|
||||
<caret>@JvmField private val a = "Lorem ipsum"
|
||||
}
|
||||
Reference in New Issue
Block a user