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
d9178fce
Commit
d9178fce
authored
Jun 07, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- method forward decl. bug
SVN=121563
parent
b6218e69
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
bug044.go
test/bugs/bug044.go
+27
-0
golden.out
test/golden.out
+4
-0
No files found.
test/bugs/bug044.go
0 → 100644
View file @
d9178fce
// 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.
// $G $D/$F.go || echo BUG: compilation should succeed
package
main
type
S
struct
{
};
func
(
p
*
S
)
M1a
()
;
func
(
p
*
S
)
M2a
()
{
p
.
M1a
();
}
func
(
p
*
S
)
M1a
()
{}
// this works
func
(
p
*
S
)
M1b
()
int
;
func
(
p
*
S
)
M2b
()
{
p
.
M1b
();
}
func
(
p
*
S
)
M1b
()
int
{}
// BUG this doesn't
test/golden.out
View file @
d9178fce
...
...
@@ -274,6 +274,10 @@ bugs/bug043.go:14: error in shape across assignment
bugs/bug043.go:17: error in shape across assignment
BUG: compilation should succeed
=========== bugs/bug044.go
bugs/bug044.go:23: error in shape across assignment
BUG: compilation should succeed
=========== fixedbugs/bug000.go
=========== fixedbugs/bug005.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