mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A generic signature like <T : SomeClass> would create a subtype constraint between the type variable for T and SomeClass. This is too loose, because a subclass existential like 'SomeClass & SomeProto' is a subtype of SomeClass, but cannot bind to T, because it is not representationally a single retainable pointer. Fixes <rdar://problem/32617814>, <https://bugs.swift.org/browse/SR-5142>.
67 KiB
67 KiB