kotlinx-metadata: Wrong interpretation of Flag.Constructor.IS_PRIMARY
^KT-42429 (cherry picked from commit d6390b31c0dfbc71b9012f71a7c829b473c14c86)
This commit is contained in:
committed by
Vasily Levchenko
parent
59c0d4b189
commit
db65e8d2c3
+1
-1
@@ -359,7 +359,7 @@ private class MappingExtensions(
|
||||
|
||||
val ConstructorStub.flags: Flags
|
||||
get() = flagsOfNotNull(
|
||||
isSecondaryConstructorFlag.takeIf { !isPrimary },
|
||||
Flag.Constructor.IS_SECONDARY.takeIf { !isPrimary },
|
||||
Flag.HAS_ANNOTATIONS.takeIf { annotations.isNotEmpty() }
|
||||
) or visibility.flags
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ internal class KmComparator(private val configuration: ComparisonConfig) {
|
||||
)(flags1, flags2)
|
||||
|
||||
private fun compareConstructorFlags(flags1: Flags, flags2: Flags): MetadataCompareResult = serialComparator(
|
||||
checkFlag(Flag.Constructor.IS_PRIMARY) to "IS_PRIMARY mismatch"
|
||||
checkFlag(Flag.Constructor.IS_SECONDARY) to "IS_SECONDARY mismatch"
|
||||
)(flags1, flags2)
|
||||
|
||||
private fun compare(constructor1: KmConstructor, constructor2: KmConstructor): MetadataCompareResult = serialComparator(
|
||||
|
||||
Reference in New Issue
Block a user