Skip to content

Commit 144c0d6

Browse files
authored
Merge pull request #9766 from igfoo/igfoo/extension
Kotlin: Fix a label
2 parents ef0ec39 + b373af4 commit 144c0d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,7 @@ open class KotlinUsesExtractor(
15141514
// otherwise two extension properties declared in the same enclosing context will get
15151515
// clashing trap labels. These are always private, so we can just make up a label without
15161516
// worrying about their names as seen from Java.
1517-
val extensionPropertyDiscriminator = getExtensionReceiverType(f)?.let { "extension;${useType(it)}" } ?: ""
1517+
val extensionPropertyDiscriminator = getExtensionReceiverType(f)?.let { "extension;${useType(it).javaResult.id}" } ?: ""
15181518
return "@\"field;{$parentId};${extensionPropertyDiscriminator}${f.name.asString()}\""
15191519
}
15201520

0 commit comments

Comments
 (0)