Files
swift-mirror/lib/AST/Module.cpp
gregomni c6a4375968 [SR-427][AST] Report DoesNotConform for failed substitutions in a bound generic type.
If a BoundGenericType is unable to get a substitution for an archetype
it uses ErrorType as the replacement (Module.cpp:705). In such a case
we should report DoesNotConform in lookupConformance(), which ends up
generating reasonable error messages. Prior to this change the
conformance would succeed and then IRGen would crash on emitting an
ErrorType during emitForeignTypeMetadataRef().

Also added test that tickles crash near the same place as SR-427.
2016-01-09 22:40:01 -08:00

55 KiB