[K2] Fix EXPECTED_DECLARATION_WITH_BODY not reporting on property accessors

We don't want any `expect` function to have body. So we're sure no
new false-positive reports are introduced because of removal of
`isTopLevelOrInsideClass` condition.

^KT-59899 Fixed
This commit is contained in:
Roman Efremov
2023-09-15 15:19:06 +02:00
committed by Space Team
parent 4404e5f036
commit 1fdc607898
4 changed files with 9 additions and 9 deletions
@@ -13,7 +13,7 @@ expect interface My {
open val a: Int
open val b: String
open val c: String get() = ""
open val c: String <!EXPECTED_DECLARATION_WITH_BODY!>get()<!> = ""
<!REDUNDANT_MODIFIER!>open<!> abstract val e: Int
val f: Int