swift
190d9653 - [Property wrappers] Fix source compatibility issue with attribute lookup.

Commit
5 years ago
[Property wrappers] Fix source compatibility issue with attribute lookup. Swift 5.1's lookup for custom attributes skipped associated type members, which allowed code like the given example to compile. To maintain source compatibility, identify the narrow case that happens in practice---the property wrapper is at module scope but is now shadowed by an associated type---warn about it, and accept it. Fixes rdar://problem/56213175.
Author
Committer
Parents
Loading