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
swift: fix initializers with properties named self
When a type has a field `self`, the synthesized initializers need to
avoid using `self` as the internal parameter name, instead permuting it.
By default we pick `_self`, but we also ensure this doesn't conflict
with any other declared properties; in the event there is a conflict, we
append `_` until it's unique.
This makes the test introduced by the previous commit start passing.
Fixes#1530.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
-`apollo-codegen-scala`
10
10
- <First `apollo-codegen-scala` related entry goes here>
11
11
-`apollo-codegen-swift`
12
+
- Ensure fields named `self` don't cause compilation errors in the generated code [#1533](https://github.com/apollographql/apollo-tooling/pull/1533)
12
13
- Preserve leading/trailing underscores on field names [#1533](https://github.com/apollographql/apollo-tooling/pull/1533)
13
14
-`apollo-codegen-typescript`
14
15
- <First `apollo-codegen-typescript` related entry goes here>
0 commit comments