tinygo/src/reflect
Ayke van Laethem e955aa1941 reflect: implement CanInterface and fix string Index()
This commit fixes two related issues:

 1. CanInterface was unimplemented. It now uses the same check as is
    used in Interface() itself.
    This issue led to https://github.com/tinygo-org/tinygo/issues/3033
 2. Allow making an interface out of a string char element.

Doing this in one commit (instead of two) because they are shown to be
correct with the same tests.
2022-09-01 21:42:22 +02:00
..
all_test.go src/reflect: comment out a now-failing test 2021-12-18 10:02:36 +01:00
deepequal.go all: format code according to Go 1.19 rules 2022-08-04 12:18:32 +02:00
makefunc.go reflect: add stubs required for net/http 2021-06-02 13:28:38 +02:00
sidetables.go all: format code according to Go 1.19 rules 2022-08-04 12:18:32 +02:00
strconv.go all: format code according to Go 1.19 rules 2022-08-04 12:18:32 +02:00
swapper.go reflect: use SliceHeader and StringHeader variant for internal use 2021-05-22 21:41:06 +02:00
type.go Rename reflect.Ptr to reflect.Pointer 2022-03-18 15:27:28 +01:00
value.go reflect: implement CanInterface and fix string Index() 2022-09-01 21:42:22 +02:00
value_test.go src/reflect: add test for indirect array indexing 2021-12-18 10:02:36 +01:00