diff --git a/test/bugs/bug165.go b/test/bugs/bug165.go new file mode 100644 index 00000000000..02a6c379b40 --- /dev/null +++ b/test/bugs/bug165.go @@ -0,0 +1,11 @@ +// errchk $G $D/$F.go + +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +type I interface { + m(map[I] bool) +} diff --git a/test/golden.out b/test/golden.out index 695a68cd411..09ac96269a0 100644 --- a/test/golden.out +++ b/test/golden.out @@ -111,6 +111,10 @@ BUG: should not compile =========== bugs/bug164.go BUG: should not compile +=========== bugs/bug165.go +bugs/bug165.go:6: invalid map key type I +BUG: should compile + =========== fixedbugs/bug016.go fixedbugs/bug016.go:7: constant -3 overflows uint