mismatched types error when comparing aliased types
RussellLuo opened this issue · comments
Luo Peng commented
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