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,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()