Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(553)

Delta Between Two Patch Sets: test/fixedbugs/bug085.go

Issue 6947049: code review 6947049: test: s/float/float32/ (Closed)
Left Patch Set: Created 12 years, 3 months ago
Right Patch Set: diff -r b7482cb67996 https://go.googlecode.com/hg/ Created 12 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | test/fixedbugs/bug228.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // errorcheck 1 // errorcheck
2 2
3 // Copyright 2009 The Go Authors. All rights reserved. 3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
6 6
7 package P 7 package P
8 8
9 var x int 9 var x int
10 10
11 func foo() { 11 func foo() {
12 print(P.x); // ERROR "undefined" 12 print(P.x); // ERROR "undefined"
13 } 13 }
14 14
15 /* 15 /*
16 uetli:~/Source/go1/test/bugs gri$ 6g bug085.go 16 uetli:~/Source/go1/test/bugs gri$ 6g bug085.go
17 bug085.go:6: P: undefined 17 bug085.go:6: P: undefined
18 Bus error 18 Bus error
19 */ 19 */
20 20
21 /* expected scope hierarchy (outermost to innermost) 21 /* expected scope hierarchy (outermost to innermost)
22 22
23 universe scope (contains predeclared identifiers int, float, int32, len, etc.) 23 universe scope (contains predeclared identifiers int, float32, int32, len, etc.)
24 "solar" scope (just holds the package name P so it can be found but doesn't conf lict) 24 "solar" scope (just holds the package name P so it can be found but doesn't conf lict)
25 global scope (the package global scope) 25 global scope (the package global scope)
26 local scopes (function scopes) 26 local scopes (function scopes)
27 */ 27 */
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b