Skip to content
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

classfile member.member call bug #1414

Closed
visualfc opened this issue Sep 21, 2023 · 0 comments · Fixed by #1415
Closed

classfile member.member call bug #1414

visualfc opened this issue Sep 21, 2023 · 0 comments · Fixed by #1415

Comments

@visualfc
Copy link
Member

The following program sample.gop triggers an unexpected result

// add a sample
// sample.gop
rc := &Rect{}
println rc

// Rect.gox
type Engine struct {
}

func (e *Engine) EnterPointerLock() {
}

func Engine() *Engine {
	return &Engine{}
}

func Test() {
	engine.enterPointerLock
}

Expected result

build pass.

Got

panic: ./Rect.gox:12:2: engine.enterPointerLock undefined (type func() *Engine has no field or method enterPointerLock)

Gop Version

v1.1.6

Additional Notes

No response

@visualfc visualfc changed the title classfile member call classfile member.member call bug Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant