Add quickfix for INAPPLICABLE_JVM_FIELD

replaces with 'const' when possible

#KT-10981 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-04-19 15:04:20 +03:00
parent 199bff7e70
commit dcae66a727
16 changed files with 207 additions and 0 deletions
@@ -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}"