diff options
author | frenkel26 <[email protected]> | 2024-05-28 15:09:59 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-28 14:09:59 +0200 |
commit | f7c0466f78fe97c578f298de639fd5248cc91ee4 (patch) | |
tree | bd196d5c649f3f15a27e01d7a1d7630cfa40130b /testdata/reflect.txt | |
parent | 81ce7fb738142361afba119f1f531cf6ffddc6d1 (diff) | |
download | tinygo-f7c0466f78fe97c578f298de639fd5248cc91ee4.tar.gz tinygo-f7c0466f78fe97c578f298de639fd5248cc91ee4.zip |
compiler,reflect: fix NumMethods for Interface type
Diffstat (limited to 'testdata/reflect.txt')
-rw-r--r-- | testdata/reflect.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testdata/reflect.txt b/testdata/reflect.txt index e4a92a5e1..3f1b5a17b 100644 --- a/testdata/reflect.txt +++ b/testdata/reflect.txt @@ -80,6 +80,7 @@ reflect type: ptr reflect type: interface settable=true addrable=true interface nil: true + NumMethod: 1 reflect type: ptr pointer: true int nil: false @@ -240,6 +241,7 @@ reflect type: struct reflect type: interface caninterface=false interface nil: true + NumMethod: 1 reflect type: struct struct: 3 field: 0 a @@ -371,12 +373,14 @@ reflect type: slice comparable=false reflect type: interface settable=true addrable=true interface nil: false + NumMethod: 0 reflect type: int int: 3 indexing: 1 reflect type: interface settable=true addrable=true interface nil: false + NumMethod: 0 reflect type: string string: str 3 reflect type: uint8 @@ -389,6 +393,7 @@ reflect type: slice comparable=false reflect type: interface settable=true addrable=true interface nil: false + NumMethod: 0 reflect type: complex128 complex: (-4.000000e+000+2.500000e+000i) reflect type: ptr |