diff options
author | Jan Ziak <0xe2.0x9a.0x9b@gmail.com> | 2014-04-11 15:28:37 +0200 |
---|---|---|
committer | Jan Ziak <0xe2.0x9a.0x9b@gmail.com> | 2014-04-11 15:28:37 +0200 |
commit | 568095662f0d9ac310572283f571aff4e86cfb9f (patch) | |
tree | ea11e1c2b39ee11db7753de15004de5833a85299 /test | |
parent | 7085d135244ab3df56a348cc6ba4ba7d6e4df74a (diff) | |
download | go-568095662f0d9ac310572283f571aff4e86cfb9f.tar.gz |
cmd/gc: fix typo in ordermapassign
Fixes issue 7742
LGTM=dave, rsc
R=rsc, bradfitz, dave
CC=golang-codereviews
https://codereview.appspot.com/85580047
Diffstat (limited to 'test')
-rw-r--r-- | test/fixedbugs/issue7742.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/fixedbugs/issue7742.go b/test/fixedbugs/issue7742.go new file mode 100644 index 000000000..dc167c22e --- /dev/null +++ b/test/fixedbugs/issue7742.go @@ -0,0 +1,18 @@ +// compile + +// Copyright 2014 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. + +// Issue 7742: cannot use &autotmp_0001 (type *map[string]string) as type *string in function argument + +package main + +var ( + m map[string]string + v string +) + +func main() { + m[v], _ = v, v +} |