Files
swift-mirror/test/Reflection/Inputs/Missing.swift
Slava Pestov 154a228a2a Reflection: Gracefully handle missing associated type metadata
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.
2016-09-24 02:17:45 -07:00

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)
}