Commit Graph

2 Commits

Author SHA1 Message Date
Hamish Knight
0a1905acba [CS] Only use unsolved applicable fn for @dynamicMemberLookup cases
This works around the fact that existential opening does not currently
work correctly in cases where the argument isn't resolved before the
applicable fn is solved.
2025-10-19 13:14:00 +01:00
Slava Pestov
40948d7abd Sema: Workaround for broken existential opening behavior
This is a narrow workaround for a regression from
9e3d0e0a8c.

There is no reason to skip this logic for protocol extension
members, except that doing so happens to break existential
opening in an expression that involves a call to Array.init
elsewhere.

However there is an underlying issue here with existential opening,
which doesn't seem to work right in the presence of overloading.

The test case demonstrates the fixed problem, together with an
existing bug that points to the underlying problem.

Fixes rdar://160389221.
2025-09-24 18:01:24 -04:00