We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sample.gop
type Game struct { width int } type Sprite struct { *Game } func (p *Sprite) Width() float64 { return 0 } var monkey Sprite println monkey.width
Access monkey.Width(), not monkey.Game.width
Access monkey.Game.width
v1.0.20
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following program
sample.gop
triggers an unexpected resultExpected result
Access monkey.Width(), not monkey.Game.width
Got
Access monkey.Game.width
Gop Version
v1.0.20
Additional Notes
No response
The text was updated successfully, but these errors were encountered: