Debian Codegraph @

_test/redeclaration0.go

raw symbols SCIP
1 package main
2
3 func main() {
4 type foo struct {
5 yolo string
6 }
7
8 var foo int
9 foo = 2
10 println(foo)
11 }
12
13 // Error:
14 // ../_test/redeclaration0.go:8:6: foo redeclared in this block
15 // previous declaration at ../_test/redeclaration0.go:4:7