diff options
author | Matthew Dempsky <mdempsky@google.com> | 2017-11-22 09:43:52 -0800 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2017-11-22 19:14:31 +0000 |
commit | 3c375f1b7ed54471c5323420a15b9bfe162a2527 (patch) | |
tree | 0af2b20c9d7643aaa5c43a735e1dbf0d8d012e4f /src/go/types/check_test.go | |
parent | 5e423ed8553b8eec01273597f7eb89ce73f47b86 (diff) | |
download | go-3c375f1b7ed54471c5323420a15b9bfe162a2527.tar.gz go-3c375f1b7ed54471c5323420a15b9bfe162a2527.zip |
cmd/compile, go/types: error if main.main is not a function
Fixes #21256.
Change-Id: I3af4c76e734c09d07f15525b793a544a7279b906
Reviewed-on: https://go-review.googlesource.com/79435
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/go/types/check_test.go')
-rw-r--r-- | src/go/types/check_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/go/types/check_test.go b/src/go/types/check_test.go index 24b3365717..97e224f870 100644 --- a/src/go/types/check_test.go +++ b/src/go/types/check_test.go @@ -69,6 +69,7 @@ var tests = [][]string{ {"testdata/decls2a.src", "testdata/decls2b.src"}, {"testdata/decls3.src"}, {"testdata/decls4.src"}, + {"testdata/decls5.src"}, {"testdata/const0.src"}, {"testdata/const1.src"}, {"testdata/constdecl.src"}, |