Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

realm_compositelit.gno

0.20 Kb · 22 lines
 1package vm
 2
 3type (
 4	Word uint
 5	nat  []Word
 6)
 7
 8var zero = &Int{
 9	neg: true,
10	abs: []Word{0},
11}
12
13// structLit
14type Int struct {
15	neg bool
16	abs nat
17}
18
19func GetZeroType() nat {
20	a := zero.abs
21	return a
22}