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
Goose doesn't yet support receiver methods for non-struct types. However, it's probably bad UX to panic (without saying the unsupported error msg), like it does in this example.
The text was updated successfully, but these errors were encountered:
sanjit-bhat
changed the title
Panic when writing receiver methods for type re-declarations
Panic when calling receiver methods for type re-declarations
Mar 25, 2024
sanjit-bhat
changed the title
Panic when calling receiver methods for type re-declarations
Panic when calling receiver methods for non-struct types
Mar 25, 2024
Goose doesn't yet support receiver methods for non-struct types. However, it's probably bad UX to panic (without saying the unsupported error msg), like it does in this example.
After running Goose, I get the following error. Looks like it's assuming the type is a struct and calling the Go
NumFields
method on it, which panics.The text was updated successfully, but these errors were encountered: