Commit 82f9d50
π [6.0][cxx-interop] Do not export enums with indirect associated values
Explanation: Indirect enum cases can trigger infinite recursion. This PR
stops attempting to export them to C++.
Scope: C++ reverse interop.
Risk: Low, we skip the problematic pattern.
Testing: Regression test added.
Issue: rdar://134852756
Reviewer: @egorzhdan
Original PR: #761671 parent f8e35f0 commit 82f9d50
File tree
2 files changed
+7
-0
lines changed- lib/AST
- test/Interop/SwiftToCxx/enums
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
0 commit comments