Source file src/cmd/cover/testdata/pkgcfg/a/a.go
1 package a 2 3 type Atyp int 4 5 func (ap *Atyp) Set(q int) { 6 *ap = Atyp(q) 7 } 8 9 func (ap Atyp) Get() int { 10 inter := func(q Atyp) int { 11 return int(q) 12 } 13 return inter(ap) 14 } 15 16 var afunc = func(x int) int { 17 return x + 1 18 } 19 var Avar = afunc(42) 20 21 func A(x int) int { 22 if x == 0 { 23 return 22 24 } else if x == 1 { 25 return 33 26 } 27 return 44 28 } 29