Skip to content

Commit 4415c36

Browse files
authored
Merge pull request github#13542 from igfoo/igfoo/modality_final
Kotlin: Remove an expected-no-getter exception
2 parents 085c85f + 0d05f50 commit 4415c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ open class KotlinFileExtractor(
15591559
val setter = p.setter
15601560

15611561
if (getter == null) {
1562-
if (p.modality != Modality.FINAL || !isExternalDeclaration(p)) {
1562+
if (!isExternalDeclaration(p)) {
15631563
logger.warnElement("IrProperty without a getter", p)
15641564
}
15651565
} else if (shouldExtractDecl(getter, extractPrivateMembers)) {

0 commit comments

Comments
 (0)