tinygo/testdata/binop.txt
Ayke van Laethem fb0bb69f62 compiler: fix non-int integer constants
Before this change, the compiler could panic with the following message:

    panic: 20 not an Int

That of course doesn't make much sense. But it apparently is expected
behavior, see https://github.com/golang/go/issues/43165 for details.

This commit fixes this issue by converting the constant to an integer if
needed.
2020-12-27 16:13:36 +01:00

66 строки
441 Б
Text

string equality
true
false
false
true
string inequality
false
true
false
true
false
true
false
true
false
true
false
true
true
false
false
true
array equality
true
false
false
false
false
true
struct equality
true
false
false
false
false
true
true
true
blank fields in structs
true
false
true
false
complex numbers
true
false
false
false
true
true
false
false
false
true
true
true
shifts
true
true
true
true
true
true
true
constant number
0