realm_compositelit.gno

0.20 Kb ยท 22 lines
 1package tests
 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}