Skip to content

Commit 005e880

Browse files
committed
Add failing test.
1 parent bda70ee commit 005e880

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

_testing/DESC

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ test.0049 - anonymous struct type as a function argument
5050
test.0050 - anonymous struct pointer type as a function argument
5151
test.0051 - go parser stops parsing after 10 errors without AllErrors flag
5252
test.0052 - implicit type of a struct within slice/array literal
53+
test.0053 - type redefinition should not inherit method sets

_testing/test.0053/cursor.215

Whitespace-only changes.

_testing/test.0053/out.expected

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Found 4 candidates:
2+
func Fooer() string
3+
var A int
4+
var B int
5+
var C float64

_testing/test.0053/test.go.in

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package main
2+
3+
type FooBar struct {
4+
A int
5+
B int
6+
C float64
7+
}
8+
9+
func (b *FooBar) Foobarer() string { return "foobarer" }
10+
11+
type Bar FooBar
12+
13+
func (b *Bar) Fooer() string { return "fooer" }
14+
15+
func main() {
16+
var b Bar
17+
b.
18+
}

0 commit comments

Comments
 (0)