You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See disabled test cases in {test/1_stdlib//Casts.swift}. Dynamic casts from CoreFoundation types to protocol existentials (for protocols that they implement) don't work.
The text was updated successfully, but these errors were encountered:
This turns out to be a somewhat ambiguous thing to try to do: When dealing with references to class objects, the runtime caster will normalize the object types. For most CF objects, this results in the caster working with the corresponding Objective-C type instead of the CF type. One possible solution would be for the runtime dynamic cast code to try both the provided (CF) type and the normalized (Obj-C) type in such cases.
#33561 should fix this for the non-optimized case (where the cast is being handled by the runtime). There may still be issues with optimized casts, though.
Additional Detail from JIRA
md5: 540dd3cbf15c2fc1a75d48b4738ea25f
Issue Description:
See disabled test cases in {test/1_stdlib//Casts.swift}. Dynamic casts from CoreFoundation types to protocol existentials (for protocols that they implement) don't work.
The text was updated successfully, but these errors were encountered: