mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously we would crash if we couldn't look up an associated type witness for a concrete type. Instead, propagate the failure up to type lowering, which returns nullptr to the caller, just like when other metadata is missing.
15 lines
205 B
Swift
15 lines
205 B
Swift
public struct Box<T> {
|
|
public let value: T
|
|
}
|
|
|
|
public protocol P {
|
|
associatedtype A
|
|
associatedtype B
|
|
}
|
|
|
|
public struct Bar<T : P> {
|
|
public let a: T.A
|
|
public let b: T.B
|
|
public let c: (T.A, T.B)
|
|
}
|