Commit 40948d7
committed
Sema: Workaround for broken existential opening behavior
This is a narrow workaround for a regression from
9e3d0e0.
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.1 parent 8f7af45 commit 40948d7
File tree
2 files changed
+35
-1
lines changed- lib/Sema
- test/Constraints
2 files changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13394 | 13394 | | |
13395 | 13395 | | |
13396 | 13396 | | |
| 13397 | + | |
| 13398 | + | |
| 13399 | + | |
13397 | 13400 | | |
13398 | | - | |
| 13401 | + | |
| 13402 | + | |
13399 | 13403 | | |
13400 | 13404 | | |
13401 | 13405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments