Declaring a struct inside a block scope #11638
sachinbhutani
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
V version: 0.1.24
OS: - on playground
What did you do?
a struct cannot be defined inside any function
works
but
doesn't work
What did you expect to see?
4
4
What did you see instead?
could not find method
x
2| struct Point {x int y int}
Beta Was this translation helpful? Give feedback.
All reactions