gencode icon indicating copy to clipboard operation
gencode copied to clipboard

[][N]byte generates code that does not compile

Open gz-c opened this issue 7 years ago • 0 comments

A field with type [][32]byte will generate code like:

		for k0 := range d.Foo {

			{
				s += 32
			}

		}

The k0 is unused and prevents compilation (go1.11)

gz-c avatar Jan 05 '19 08:01 gz-c