* interp: detect local redecleration Fixes #666 * make make check happy * fix typo in filenames, add them to the exclusion list Co-authored-by: Marc Vertes <mvertes@free.fr>
13 lines
158 B
Go
13 lines
158 B
Go
package main
|
|
|
|
func main() {
|
|
var foo string
|
|
|
|
var foo int
|
|
foo = 2
|
|
println(foo)
|
|
}
|
|
|
|
// Error:
|
|
// ../_test/redeclaration1.go:6:6: foo redeclared in this block
|