tinygo/testdata
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
..
cgo
alias.go
alias.txt fix bug in IR regarding type aliases 2019-09-20 10:35:49 +02:00
atomic.go compiler: add support for atomic operations 2020-05-28 15:11:46 +02:00
atomic.txt compiler: add support for atomic operations 2020-05-28 15:11:46 +02:00
binop.go compiler: fix non-int integer constants 2020-12-27 16:13:36 +01:00
binop.txt compiler: fix non-int integer constants 2020-12-27 16:13:36 +01:00
calls.go compiler: implement func value and builtin defers 2020-07-31 01:48:57 +02:00
calls.txt compiler: implement func value and builtin defers 2020-07-31 01:48:57 +02:00
channel.go
channel.txt
coroutines.go
coroutines.txt
float.go compiler: implement negate for complex numbers 2020-10-28 07:38:51 +01:00
float.txt compiler: implement negate for complex numbers 2020-10-28 07:38:51 +01:00
gc.go avr: use a garbage collector 2020-01-27 19:01:55 +01:00
gc.txt
init.go testdata: fix formatting 2020-05-12 01:17:27 +02:00
init.txt
init_multi.go
init_multi.txt testdata: add more test cases in testdata 2018-10-25 20:37:35 +02:00
interface.go compiler: add support for anonymous type asserts 2020-03-29 08:39:07 +02:00
interface.txt
map.go runtime: allow ranging over a nil map 2020-10-29 21:53:41 +01:00
map.txt
math.go runtime: add support for math package 2019-02-05 19:37:21 +01:00
math.txt
print.go runtime: use dedicated printfloat32 2020-10-02 11:26:22 +02:00
print.txt
reflect.go
reflect.txt
slice.go
slice.txt compiler: compare slice against nil 2018-10-20 17:22:51 +02:00
sort.go implement reflect.Swapper 2020-10-23 21:37:35 +02:00
sort.txt implement reflect.Swapper 2020-10-23 21:37:35 +02:00
stdlib.go
stdlib.txt
string.go compiler: fix named string to []byte slice conversion 2020-07-29 12:13:37 +02:00
string.txt compiler,runtime: implement []rune to string conversion 2019-08-11 15:45:35 +02:00
structs.go
structs.txt
zeroalloc.go
zeroalloc.txt add code to handle programs which use heap allocations but never hit the GC 2019-11-17 15:14:51 +01:00