Debian Codegraph @

_test/redeclaration2.go

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