mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When allowing errors we may have serialized a requirement without a witness, do not assert when deserializing. Resolves rdar://81884767
16 lines
507 B
Swift
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())
|