-
Notifications
You must be signed in to change notification settings - Fork 375
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
Panic on Type Assertion with Interface #2636
Comments
omarsy
changed the title
Panic on Type Assertion with Interface in Gnolang
Panic on Type Assertion with Interface
Jul 27, 2024
yes; we should unify the code for DeclStmt and AssignStmt (ie. |
Yes, I think too. I don't know why we didn't do that. |
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
Issue Summary:
A panic occurs when performing a type assertion on an
interface{}
in Gnolang. The following code works as expected in Go (Golang), but in Gnolang, it results in a runtime panic:Expected Behavior:
The code should execute without panic, correctly performing the type assertion. The expected output should be:
Actual Behavior:
In Gnolang, running the above code causes a panic with the message:
This suggests an issue with how type assertions are being handled internally, specifically when converting types within the interface.
The text was updated successfully, but these errors were encountered: