Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
b8dd218e
Commit
b8dd218e
authored
May 05, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug117 is fixed in 6g; now an errchk
R=r DELTA=42 (20 added, 22 deleted, 0 changed) OCL=28295 CL=28295
parent
9cba9c88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
bug117.go
test/fixedbugs/bug117.go
+5
-1
golden.out
test/golden.out
+0
-6
No files found.
test/bugs/bug117.go
→
test/
fixed
bugs/bug117.go
View file @
b8dd218e
...
...
@@ -10,8 +10,12 @@ type PS *S
func
(
p
*
S
)
get
()
int
{
return
p
.
a
}
func
fn
(
p
PS
)
int
{
return
p
.
get
()
// p has type PS, and PS has no methods.
// (a compiler might see that p is a pointer
// and go looking in S without noticing PS.)
return
p
.
get
()
// ERROR "undefined DOT"
}
func
main
()
{
s
:=
S
{
1
};
...
...
test/golden.out
View file @
b8dd218e
...
...
@@ -85,12 +85,6 @@ abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz
=========== chan/nonblock.go
PASS
=========== bugs/bug117.go
bugs/bug117.go:9: undefined DOT get on PS
bugs/bug117.go:9: illegal types for operand: RETURN
int
BUG: should compile
=========== bugs/bug132.go
BUG: compilation succeeds incorrectly
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment