Debian Codegraph @

test/fixedbugs/bug075.go

raw
1 // run
2
3 // Copyright 2009 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 package main
8
9 type T struct { m map[int]int }
10 func main() {
11 t := new(T);
12 t.m = make(map[int]int);
13 var x int;
14 var ok bool;
15 x, ok = t.m[0]; //bug075.go:11: bad shape across assignment - cr=1 cl=2
16 _, _ = x, ok;
17 }