Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
61c9d3f0
Commit
61c9d3f0
authored
Mar 29, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: adjust bugs/bug322 to match current spec.
R=gri, rsc1 CC=golang-dev
https://golang.org/cl/4328041
parent
469a747e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
test/bugs/bug322.dir/main.go
test/bugs/bug322.dir/main.go
+5
-5
test/golden.out
test/golden.out
+1
-2
No files found.
test/bugs/bug322.dir/main.go
View file @
61c9d3f0
...
...
@@ -19,8 +19,9 @@ func main() {
t
.
M
()
t
.
PM
()
var
i1
I
=
t
i1
.
M
()
// This is still an error.
// var i1 I = t
// i1.M()
// This combination is illegal because
// PM requires a pointer receiver.
...
...
@@ -42,6 +43,5 @@ func main() {
These should not be errors anymore:
bug322.dir/main.go:19: implicit assignment of unexported field 'x' of lib.T in method receiver
bug322.dir/main.go:22: implicit assignment of unexported field 'x' of lib.T in assignment
bug322.dir/main.go:31: implicit assignment of unexported field 'x' of lib.T in method receiver
*/
\ No newline at end of file
bug322.dir/main.go:32: implicit assignment of unexported field 'x' of lib.T in method receiver
*/
test/golden.out
View file @
61c9d3f0
...
...
@@ -161,8 +161,7 @@ panic: interface conversion: interface is main.T, not main.T
=========== bugs/bug322.go
bugs/bug322.dir/main.go:19: implicit assignment of unexported field 'x' of lib.T in method receiver
bugs/bug322.dir/main.go:22: implicit assignment of unexported field 'x' of lib.T in assignment
bugs/bug322.dir/main.go:31: implicit assignment of unexported field 'x' of lib.T in method receiver
bugs/bug322.dir/main.go:32: implicit assignment of unexported field 'x' of lib.T in method receiver
BUG: fails incorrectly
=========== bugs/bug324.go
...
...
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