mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Functions can in fact conform to some protocols, notably, marker protocols. Dynamically they have no influence on whether the cast will succeed or not, as there is no way to tell if a type conforms to such a protocol at runtime. But we should check them statically because they otherwise can be cast to Any eventually.
3.3 KiB
3.3 KiB