mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The macro cannot diagnose some situations, or rather, would diagnose too aggressively, because it cannot inspect the type declarations of all invokved types, and therefore we're unable to reliably report errors only when necessary. Originally I thought we don't want to emit macro code that "may fail to compile" but we don't really have a choice. This patch removes a manual diagnostic, and enables more correct code to properly use @Resolvable protocols.