diff options
author | Russ Cox <rsc@golang.org> | 2009-01-30 14:39:31 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-30 14:39:31 -0800 |
commit | 4cf7711568da9510bae09338e03a66049767c851 (patch) | |
tree | 23faccc99f2fcc5de337a139fb7b812a8a2f3137 /test/func4.go | |
parent | b59dbd7fe07a80c2081e5932fb21f4ec7caa62cb (diff) | |
download | go-git-4cf7711568da9510bae09338e03a66049767c851.tar.gz |
update go code tree to new func rules.
R=r
DELTA=367 (111 added, 59 deleted, 197 changed)
OCL=23957
CL=23960
Diffstat (limited to 'test/func4.go')
-rw-r--r-- | test/func4.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/func4.go b/test/func4.go new file mode 100644 index 0000000000..843e6d341b --- /dev/null +++ b/test/func4.go @@ -0,0 +1,14 @@ +// errchk $G $D/$F.go + +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +var notmain func() + +func main() { + var x = &main; // ERROR "address of function" + main = notmain; // ERROR "assign to function" +} |