mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SE-0470] Prohibit isolated conformances in dynamic casts marked as such
Certain dynamic casts cannot work safely with isolated conformances, regardless of what executor the code runs on. For such cases, reject all attempts to conform to the type.
This commit is contained in:
@@ -721,7 +721,8 @@ public:
|
||||
const OpaqueValue *value,
|
||||
const Metadata *type,
|
||||
ProtocolDescriptorRef protocol,
|
||||
const WitnessTable **conformance);
|
||||
const WitnessTable **conformance,
|
||||
bool prohibitIsolatedConformances);
|
||||
|
||||
/// Construct type metadata for the given protocol.
|
||||
const Metadata *
|
||||
|
||||
Reference in New Issue
Block a user