[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:
committed by
Space Team
parent
4404e5f036
commit
1fdc607898
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user