mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
reflect: implement Value.Elem() for interface values
This commit is contained in:
committed by
Ron Evans
parent
d15e32fb89
commit
823c9c25cf
Vendored
+28
@@ -334,6 +334,34 @@ reflect type: ptr
|
||||
exported: false
|
||||
reflect type: int addrable=true
|
||||
int: 42
|
||||
reflect type: slice comparable=false
|
||||
slice: interface 3 3
|
||||
pointer: true
|
||||
nil: false
|
||||
indexing: 0
|
||||
reflect type: interface settable=true addrable=true
|
||||
interface
|
||||
nil: false
|
||||
reflect type: int
|
||||
int: 3
|
||||
indexing: 1
|
||||
reflect type: interface settable=true addrable=true
|
||||
interface
|
||||
nil: false
|
||||
reflect type: string
|
||||
string: str 3
|
||||
reflect type: uint8
|
||||
uint: 115
|
||||
reflect type: uint8
|
||||
uint: 116
|
||||
reflect type: uint8
|
||||
uint: 114
|
||||
indexing: 2
|
||||
reflect type: interface settable=true addrable=true
|
||||
interface
|
||||
nil: false
|
||||
reflect type: complex128
|
||||
complex: (-4.000000e+000+2.500000e+000i)
|
||||
reflect type: ptr
|
||||
pointer: true int8
|
||||
nil: false
|
||||
|
||||
Reference in New Issue
Block a user