sdkgen icon indicating copy to clipboard operation
sdkgen copied to clipboard

Fix: Resolve problem of Block-scoped variable on cache code

Open MichelRibeiro1 opened this issue 6 years ago • 2 comments

When a method has one of these arguments: key, expirationSeconds, version, the build fails, due to a Block-scoped variable error. error

MichelRibeiro1 avatar Jul 19 '19 20:07 MichelRibeiro1

This bug is related with #35 issue

icaaro avatar Jul 19 '19 21:07 icaaro

My suggestion to solve this problem is rename the variable using _ since the sdkgen lang spec don't allow _ use in variable names, function declaration and etc . This way its impossible has a collision with this variable At least as long as the language specification does not change. iex _key.

icaaro avatar Jul 20 '19 21:07 icaaro