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
Currently there is a compiler error in generated code when accessing "data" dictionary in the "InputDict" struct if the name of the accessed property is "hash".
Versions
apollo-ios SDK version: 1.0.2
Xcode version: 14.1 RC
Swift version: 5.7.1
Steps to reproduce
execute generate code command.
Further details
Here is a screenshot of errors produced by the compiler:
I think the reason why this fails is because InputDict has a function:
Hi @Anteo95 👋🏻 - thanks for the bug report. I'll do some more investigation but this looks like another parameter name we'll need to escape or mark as reserved.
@Anteo95 thanks your solution. I tried many different things yesterday and it looks like that is the only viable one to fix it completely. It's particularly bothersome that the hash function is not something internal that we could simply rename.
Bug report
Currently there is a compiler error in generated code when accessing "data" dictionary in the "InputDict" struct if the name of the accessed property is "hash".
Versions
apollo-ios
SDK version: 1.0.2Steps to reproduce
Further details
Here is a screenshot of errors produced by the compiler:
I think the reason why this fails is because InputDict has a function:
and that causes the compiler to not be able to find "hash" field through dynamic member lookup.
changing generated code to this removes the compile error:
If there is need for any additional info for solving this issue I will try to answer it here.
The text was updated successfully, but these errors were encountered: