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

not print complie error line in func #1369

Closed
visualfc opened this issue May 29, 2023 · 0 comments · Fixed by #1372
Closed

not print complie error line in func #1369

visualfc opened this issue May 29, 2023 · 0 comments · Fixed by #1372
Labels

Comments

@visualfc
Copy link
Member

The following program sample.gop triggers an unexpected result

func set(name string, v int) string {
	return name
}

func test() {
	var a = set("box") 
	println(a)
}

println "hello"

Expected result

simple.gop:6: not enough arguments in call to set

Got

panic: gox.fatalMsg("don't call End(), please use EndInit() instead") [recovered]
	panic: gox.fatalMsg("don't call End(), please use EndInit() instead") [recovered]
	panic: gox.fatalMsg("don't call End(), please use EndInit() instead")

Gop Version

gop v1.1.3

Additional Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants