mirror of
https://github.com/apple/swift.git
synced 2026-10-18 17:49:23 +02:00
It is possible to state an associated requirement on a protocol such that a default associated type in another protocol no longer satifies this requirement. If the other protocol was from a serialized module, we would crash while getting the TypeRepr for its default type. Fix this by checking if the TypeRepr is set, and if not set, just emit a note at the associated type declaration without highlighting the default type. Fixes rdar://180489587.