Files
swift-mirror/validation-test/Serialization/AllowErrors/invalid-witness.swift
Ben Barham 3afb498896 [Deserialization] Do not assert on a missing witness if allowing errors
When allowing errors we may have serialized a requirement without a
witness, do not assert when deserializing.

Resolves rdar://81884767
2021-08-13 17:15:21 +10:00

16 lines
507 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -module-name errors -emit-module -o %t/errors.partial.swiftmodule -experimental-allow-module-with-compiler-errors %s
// RUN: %target-swift-frontend -merge-modules -module-name errors -emit-module -o %t/errors.swiftmodule -experimental-allow-module-with-compiler-errors %t/errors.partial.swiftmodule
public protocol SomeProto {
init(from: SomeProto)
}
public struct A {}
public struct B: SomeProto {
let a: A
}
public let thing = B(a: A())