diff --git a/plugins/kotlin/idea/tests/testData/inspections/naming/objectPrivateProperty/test.kt b/plugins/kotlin/idea/tests/testData/inspections/naming/objectPrivateProperty/test.kt index 94486ea23496..07dd502669c7 100644 --- a/plugins/kotlin/idea/tests/testData/inspections/naming/objectPrivateProperty/test.kt +++ b/plugins/kotlin/idea/tests/testData/inspections/naming/objectPrivateProperty/test.kt @@ -1,4 +1,4 @@ - +private var FOO: Int = 0 object Foo { private val _Foo: String = "" diff --git a/plugins/kotlin/idea/tests/testData/inspections/naming/objectProperty/inspectionData/expected.xml b/plugins/kotlin/idea/tests/testData/inspections/naming/objectProperty/inspectionData/expected.xml index f48ade6b7d6c..7cd51ae4b6bf 100644 --- a/plugins/kotlin/idea/tests/testData/inspections/naming/objectProperty/inspectionData/expected.xml +++ b/plugins/kotlin/idea/tests/testData/inspections/naming/objectProperty/inspectionData/expected.xml @@ -1,14 +1,14 @@ test.kt - 5 + 7 light_idea_test_case Object or top-level property name <code>_FOO</code> should not start with an underscore #loc test.kt - 23 + 25 light_idea_test_case Object or top-level property name <code>_FOO</code> should not start with an underscore #loc diff --git a/plugins/kotlin/idea/tests/testData/inspections/naming/objectProperty/test.kt b/plugins/kotlin/idea/tests/testData/inspections/naming/objectProperty/test.kt index 10bd547efbfe..d04652563da0 100644 --- a/plugins/kotlin/idea/tests/testData/inspections/naming/objectProperty/test.kt +++ b/plugins/kotlin/idea/tests/testData/inspections/naming/objectProperty/test.kt @@ -2,6 +2,8 @@ val Foo: String = "" var FOO_BAR: Int = 0 +private var FOO: Int = 0 + var _FOO: Int = 0 const val THREE = 3