Commit d082b3c
Mani Zeygham
gopls/internal/golang: fall back when ( is not a dynamic function call
When implementation is requested at the "(" paren of a call, implFuncs
first checks whether the call is dynamic. For calls that are not dynamic
function calls (for example, method calls), that check fails.
Instead of returning a hard error, return errNotHandled so the request
falls back to the regular method-set implementation path.
This restores the fallback behavior that regressed in
25a90be.
Fixes golang/go#777841 parent dd752d6 commit d082b3c
File tree
3 files changed
+7
-8
lines changed- gopls/internal
- golang
- test/marker/testdata/implementation
3 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
| 943 | + | |
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
0 commit comments