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

division by zero #1336

Closed
xushiwei opened this issue Jul 22, 2022 · 0 comments · Fixed by goplus/gogen#213
Closed

division by zero #1336

xushiwei opened this issue Jul 22, 2022 · 0 comments · Fixed by goplus/gogen#213
Assignees
Labels
Milestone

Comments

@xushiwei
Copy link
Member

The following program sample.gop triggers an unexpected result

package main

import "fmt"

func main() {
	fmt.Println(0 / 0.0)
}

Expected result

./prog.go:6:18: invalid operation: division by zero

Got

division by zero
===> errors stack:
gop.LoadDir(".", 0xc00008df50, false, false)
	/root/goplus/gengo.go:73 LoadDir(dir, conf, genTestPkg, prompt)

Gop Version

v1.1.2

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