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

incorrect type while define native value #2267

Open
ltzmaxwell opened this issue Jun 3, 2024 · 0 comments
Open

incorrect type while define native value #2267

ltzmaxwell opened this issue Jun 3, 2024 · 0 comments
Labels
🐞 bug Something isn't working

Comments

@ltzmaxwell
Copy link
Contributor

ltzmaxwell commented Jun 3, 2024

When defining Go native values, such as math.MinInt8, the introduced type is int, whereas it should be untyped int. this will cause a type check error(on type checker.)
ie.

package main

import "math"

func main() {
	var a int8 = 1
	println(a == math.MinInt8)
}

this happens when test xxx.native.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

3 participants