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
-
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