-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exif struct broken for Go #622
Comments
I just realized that the compiler cannot infer the right type, because |
Another (ugly) option is to use reflection. If the type is unknown, the attribute can be resolved at runtime like this:
but I hope there's a better option |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I noticed that
image/exif.ksy
is broken for Go, the generated files yield the following errors:The type of
Exif_ExifBody_Ifd._parent
isinterface{}
, hence the instructionthis._is_le = this._parent._is_le
fails because it is generated asAnyType
instead of being converted toExif_ExifBody_Ifd
.This happens with both Go 1.17 and Go 1.18.
The issue can be reproduced with the following commands:
I don't have experience with Scala, or I'd have submitted a PR, let me know if I should provide more information.
Thanks!
The text was updated successfully, but these errors were encountered: