]> Cypherpunks repositories - gostls13.git/commit
gc: disallow declaration of variables outside package.
authorLuuk van Dijk <lvd@golang.org>
Tue, 10 Jan 2012 10:18:56 +0000 (11:18 +0100)
committerLuuk van Dijk <lvd@golang.org>
Tue, 10 Jan 2012 10:18:56 +0000 (11:18 +0100)
commit4bcc9c6b5e91eca8de1329ea2151610e2f3e3ada
tree060e45410bf5addde7449a05611c5b86459dea34
parent556258e57b4a937b0021472b7489520605f80c79
gc: disallow declaration of variables outside package.

Fixes #2231.

Declaring main.i in package main in the same way already triggers syntax errors.

R=rsc
CC=golang-dev
https://golang.org/cl/5483078
src/cmd/gc/dcl.c
test/fixedbugs/bug388.go [new file with mode: 0644]