]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix check that ensures main.main is a function
authorMatthew Dempsky <mdempsky@google.com>
Tue, 10 Apr 2018 23:01:23 +0000 (16:01 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 10 Apr 2018 23:34:12 +0000 (23:34 +0000)
commit535ad8efb8a20602fc104556eea985bb12280afd
treed71eec0d937af6d7cf2168eb574030b52ed5db7d
parent80bbad015d2f3f9407873c1657839a8a61d5f433
cmd/compile: fix check that ensures main.main is a function

The check was previously disallowing package main from even importing
a non-function symbol named "main".

Fixes #24801.

Change-Id: I849b9713890429f0a16860ef16b5dc7e970d04a4
Reviewed-on: https://go-review.googlesource.com/106120
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/dcl.go
test/fixedbugs/issue24801.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue24801.dir/main.go [new file with mode: 0644]
test/fixedbugs/issue24801.go [new file with mode: 0644]