You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: native/swift/swift-export-standalone-integration-tests/external/testData/generation/kotlinx-serialization-core/golden_result/KotlinSerialization/KotlinSerialization.swift
+8-8
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ public extension ExportedKotlinPackages.kotlinx.serialization {
159
159
missingFields:[Swift.String],
160
160
serialName:Swift.String
161
161
){
162
-
precondition(Self.self ==ExportedKotlinPackages.kotlinx.serialization.MissingFieldException.self,"Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.MissingFieldException ")
162
+
ifSelf.self !=ExportedKotlinPackages.kotlinx.serialization.MissingFieldException.self{fatalError("Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.MissingFieldException ")}
@@ -168,7 +168,7 @@ public extension ExportedKotlinPackages.kotlinx.serialization {
168
168
missingField:Swift.String,
169
169
serialName:Swift.String
170
170
){
171
-
precondition(Self.self ==ExportedKotlinPackages.kotlinx.serialization.MissingFieldException.self,"Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.MissingFieldException ")
171
+
ifSelf.self !=ExportedKotlinPackages.kotlinx.serialization.MissingFieldException.self{fatalError("Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.MissingFieldException ")}
@@ -178,7 +178,7 @@ public extension ExportedKotlinPackages.kotlinx.serialization {
178
178
message:Swift.String?,
179
179
cause:ExportedKotlinPackages.kotlin.Throwable?
180
180
){
181
-
precondition(Self.self ==ExportedKotlinPackages.kotlinx.serialization.MissingFieldException.self,"Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.MissingFieldException ")
181
+
ifSelf.self !=ExportedKotlinPackages.kotlinx.serialization.MissingFieldException.self{fatalError("Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.MissingFieldException ")}
kotlinx_serialization_MissingFieldException_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer_Swift_Array_Swift_String__Swift_Optional_Swift_String__Swift_Optional_ExportedKotlinPackages_kotlin_Throwable___(__kt, missingFields, message ??nil, cause.map{ it in it.__externalRCRef()}??nil)
@@ -196,15 +196,15 @@ public extension ExportedKotlinPackages.kotlinx.serialization {
precondition(Self.self ==ExportedKotlinPackages.kotlinx.serialization.SerializationException.self,"Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.SerializationException ")
199
+
ifSelf.self !=ExportedKotlinPackages.kotlinx.serialization.SerializationException.self{fatalError("Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.SerializationException ")}
precondition(Self.self ==ExportedKotlinPackages.kotlinx.serialization.SerializationException.self,"Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.SerializationException ")
207
+
ifSelf.self !=ExportedKotlinPackages.kotlinx.serialization.SerializationException.self{fatalError("Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.SerializationException ")}
@@ -213,15 +213,15 @@ public extension ExportedKotlinPackages.kotlinx.serialization {
213
213
message:Swift.String?,
214
214
cause:ExportedKotlinPackages.kotlin.Throwable?
215
215
){
216
-
precondition(Self.self ==ExportedKotlinPackages.kotlinx.serialization.SerializationException.self,"Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.SerializationException ")
216
+
ifSelf.self !=ExportedKotlinPackages.kotlinx.serialization.SerializationException.self{fatalError("Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.SerializationException ")}
kotlinx_serialization_SerializationException_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer_Swift_Optional_Swift_String__Swift_Optional_ExportedKotlinPackages_kotlin_Throwable___(__kt, message ??nil, cause.map{ it in it.__externalRCRef()}??nil)
220
220
}
221
221
publicoverrideinit(
222
222
cause:ExportedKotlinPackages.kotlin.Throwable?
223
223
){
224
-
precondition(Self.self ==ExportedKotlinPackages.kotlinx.serialization.SerializationException.self,"Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.SerializationException ")
224
+
ifSelf.self !=ExportedKotlinPackages.kotlinx.serialization.SerializationException.self{fatalError("Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.SerializationException ")}
kotlinx_serialization_SerializationException_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer_Swift_Optional_ExportedKotlinPackages_kotlin_Throwable___(__kt, cause.map{ it in it.__externalRCRef()}??nil)
@@ -361,7 +361,7 @@ public extension ExportedKotlinPackages.kotlinx.serialization.`internal` {
precondition(Self.self ==ExportedKotlinPackages.kotlinx.serialization.`internal`.ElementMarker.self,"Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.`internal`.ElementMarker ")
364
+
ifSelf.self !=ExportedKotlinPackages.kotlinx.serialization.`internal`.ElementMarker.self{fatalError("Inheritance from exported Kotlin classes is not supported yet: \(String(reflecting:Self.self)) inherits from ExportedKotlinPackages.kotlinx.serialization.`internal`.ElementMarker ")}
0 commit comments