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
I expected it to show an error saying it cannot be compiled due to the presence of reserved keyword long. It would be better if it could just handle it automatically by perhaps prepending/appending _ to the reserved keyword (_long) to avoid Obj-C compilation error.
What did you see instead?
A cryptic error message. It took me a while before I realized it was due to the argument name long (short for longitude in my case), which is a reserved keyword (a data type) in ObjC.
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
$GOPATH/src/github.com/petejkim/foo/foo.go
What did you expect to see?
I expected it to show an error saying it cannot be compiled due to the presence of reserved keyword
long
. It would be better if it could just handle it automatically by perhaps prepending/appending_
to the reserved keyword (_long
) to avoid Obj-C compilation error.What did you see instead?
A cryptic error message. It took me a while before I realized it was due to the argument name
long
(short forlongitude
in my case), which is a reserved keyword (a data type) in ObjC.The text was updated successfully, but these errors were encountered: