diff options
author | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2013-08-27 21:18:32 +0200 |
---|---|---|
committer | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2013-08-27 21:18:32 +0200 |
commit | e63e34efffbbebd99c12ed594b312f1ab6c02647 (patch) | |
tree | b3532bcbd24261c36ad85bf99b80000d916e2cd5 /test/fixedbugs/bug460.dir | |
parent | 8782c04e33d70e0c98c9bbda30d92128192e3fdf (diff) | |
download | go-e63e34efffbbebd99c12ed594b312f1ab6c02647.tar.gz |
cmd/gc: tag builtin error, byte, rune to avoid exporting them.
Fixes issue 5910.
Fixes issue 6260.
R=golang-dev, daniel.morsing
CC=golang-dev
https://codereview.appspot.com/13257044
Diffstat (limited to 'test/fixedbugs/bug460.dir')
-rw-r--r-- | test/fixedbugs/bug460.dir/a.go | 4 | ||||
-rw-r--r-- | test/fixedbugs/bug460.dir/b.go | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/fixedbugs/bug460.dir/a.go b/test/fixedbugs/bug460.dir/a.go index 02a287b31..29049d9aa 100644 --- a/test/fixedbugs/bug460.dir/a.go +++ b/test/fixedbugs/bug460.dir/a.go @@ -6,4 +6,8 @@ package a type Foo struct { int + int8 + error + rune + byte } diff --git a/test/fixedbugs/bug460.dir/b.go b/test/fixedbugs/bug460.dir/b.go index 1868afe07..5c0a0c47e 100644 --- a/test/fixedbugs/bug460.dir/b.go +++ b/test/fixedbugs/bug460.dir/b.go @@ -9,6 +9,9 @@ import "./a" var x a.Foo func main() { - x.int = 20 // ERROR "unexported field" + x.int = 20 // ERROR "unexported field" + x.int8 = 20 // ERROR "unexported field" + x.error = nil // ERROR "unexported field" + x.rune = 'a' // ERROR "unexported field" + x.byte = 20 // ERROR "unexported field" } - |