mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Looking up the conformance @dynamic_self C<T> : P simply returns the normal conformance C<T> : P. If we later apply a substitution map to the conformance to specialize T, we would call isSpecialized() on the substituted type, which would return false. We would then hit an assertion because the type type @dynamic_self C<Int> is not equal to the (erroneously unsubstituted) conformance type C<T>. Tweak the logic slightly to avoid this.
1.2 KiB
1.2 KiB