Do not report "property can be private" on JvmField properties

So #KT-18970 Fixed
This commit is contained in:
Dmitry Neverov
2017-07-18 07:37:50 +03:00
committed by Mikhail Glukhikh
parent 5281602381
commit 9d06a80519
5 changed files with 45 additions and 0 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.MemberVisibilityCanPrivateInspection
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// PROBLEM: none
class J(@JvmField val <caret>a: String) {
fun foo() {
println(a)
}
}
@@ -0,0 +1,11 @@
// WITH_RUNTIME
// PROBLEM: none
class J {
@JvmField
val <caret>b = ""
fun foo() {
println(b)
}
}