[SR-3711] Make .member lookups in Optional<T> context ambiguous if member can be found in both Optional and T #46296
Labels
compiler
The Swift compiler in itself
duplicate
Resolution: Duplicates another issue
good first issue
Good for newcomers
improvement
Additional Detail from JIRA
md5: 350c81741cea712fd43b212192d41c93
duplicates:
relates to:
Issue Description:
https://twitter.com/pilky/status/823942988665589760
If you have a static Self-typed member
some
ornone
in your own type, attempting to use the contextual lookup inOptional
context will favor Optional's members:Instead of quietly treating this as
Optional.none
, we should raise an error (or warning for source compatibility) that the lookup is ambiguous.The text was updated successfully, but these errors were encountered: