From: Robert Griesemer Date: Thu, 26 Jun 2008 22:15:38 +0000 (-0700) Subject: - added bug against maps X-Git-Tag: weekly.2009-11-06~3614 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2b8db5a4390a02c2144d414fa0403a71d40006bc;p=gostls13.git - added bug against maps SVN=124977 --- diff --git a/test/bugs/bug058.go b/test/bugs/bug058.go new file mode 100644 index 0000000000..19a9aa136b --- /dev/null +++ b/test/bugs/bug058.go @@ -0,0 +1,20 @@ +// $G $D/$F.go && $L $F.$A && ./$A.out + +// 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 Box struct {}; +var m map[string] *Box; + +func main() { + m["foo"] = nil; +} + +/* +bug058.go:9: illegal types for operand: INDEX + (MAP[*STRING]*{}) + (*STRING) +*/