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.go
package main type ( Number = int32 Number2 = Number ) func f(n Number2) { println(n) } func main() { var n Number = 5 f(n) }
$ go run ./sample.go 5
$ yaegi ./sample.go run: ./sample.go:12:4: cannot use type main.Number as type main.Number2
v0.12.0
No response
The text was updated successfully, but these errors were encountered:
interp: improve type checking for defined types
557a206
Fixes traefik#1408.
223f976
6933ba2
Fixes #1408.
Successfully merging a pull request may close this issue.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.12.0
Additional Notes
No response
The text was updated successfully, but these errors were encountered: