traefik / yaegi

Yaegi is Another Elegant Go Interpreter

Home Page:https://pkg.go.dev/github.com/traefik/yaegi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mismatched types error when comparing aliased types

RussellLuo opened this issue · comments

The following program sample.go triggers an unexpected result

package main

type Number = int

func main() {
	println(Number(1) < int(2))
}

Expected result

$ go run ./sample.go
true

Got

$ yaegi ./sample.go
run: ./sample.go:6:10: invalid operation: mismatched types main.Number and int

Yaegi Version

v0.13.0

Additional Notes

No response