Debian Codegraph @

test/fixedbugs/issue19548.dir/b.go

raw
1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package main
6
7 import "./a"
8
9 type Value interface {
10 a.Stringer
11 Addr() *a.Mode
12 }
13
14 var global a.Mode
15
16 func f() int {
17 var v Value
18 v = &global
19 return int(v.String()[0])
20 }
21
22 func main() {
23 f()
24 }