blob: 035bbd35d25a4be3fb863dbe3c7c385e302d3808 [file] [log] [blame]
Rémy Oudompheng428ea682013-07-02 09:08:43 +02001// errorcheck
2
3// Copyright 2013 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7// Issue 5698: can define a key type with slices.
8
9package main
10
11type Key struct {
12 a int16 // the compiler was confused by the padding.
13 b []int
14}
15
16type Val struct{}
17
18type Map map[Key]Val // ERROR "invalid map key type"