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
Trailing closure is used on a base name that involves two overloads, where one is generic `<U> (U) -> Dummy<U>` while another being a more specific `<U> ((Self.T0) -> U) -> Dummy<U>`.
In this scenario, the type checker is not able to resolve/infer the return type, leading to an "ambiguous reference" message being presented.
Environment
Tried with:
Additional Detail from JIRA
md5: e1df46361e9514af8ed6c264016aa6e5
Issue Description:
Trailing closure is used on a base name that involves two overloads, where one is generic `<U> (U) -> Dummy<U>` while another being a more specific `<U> ((Self.T0) -> U) -> Dummy<U>`.
In this scenario, the type checker is not able to resolve/infer the return type, leading to an "ambiguous reference" message being presented.
Not sure if this is related to https://bugs.swift.org/browse/SR-6989, but the bug impacts the same use case.
Xcode 11.5 and Xcode 12 beta 5
Linux Swift 5.0.1
The text was updated successfully, but these errors were encountered: