examples/returns: demonstrate return types

This commit is contained in:
Michael McLoughlin
2018-12-27 21:38:17 -08:00
parent 51524702ba
commit 023324a4ec
7 changed files with 175 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ func TestSignatureSizes(t *testing.T) {
{"func()", 0},
{"func(uint64) uint64", 16},
{"func([7]byte) byte", 9},
{"func(uint64, uint64) (uint64, uint64)", 32},
}
for _, c := range cases {
s, err := ParseSignature(c.Expr)