Commit 2ee820c
committed
[ConstraintSystem] Extend availability check to cover unavailable extensions
The solver used to check availability attribute on the declaration
itself, a better approach is to go through `AvailableAttr::isUnavailable`
because that also covers unavailable extensions.
Resolves: rdar://92364955
(cherry picked from commit 9a32db7)1 parent c1fcf45 commit 2ee820c
File tree
2 files changed
+23
-1
lines changed- lib/Sema
- test/Constraints
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6263 | 6263 | | |
6264 | 6264 | | |
6265 | 6265 | | |
6266 | | - | |
| 6266 | + | |
6267 | 6267 | | |
6268 | 6268 | | |
6269 | 6269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments