☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
redeclaration2.go
☽
☼
_test/redeclaration2.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
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