-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: merge master (5ab57de) into gopls-release-branch.0.14
Also add back the replace directive. For golang/go#63220 Merge List: + 2023-10-24 5ab57de go/packages: ensure that types.Sizes is correct + 2023-10-23 02048e6 go/packages: document that types.Sizes may be nil + 2023-10-23 5185da1 internal/refactor/inline: avoid redundant import names added by inlining + 2023-10-23 6360c0b gopls/internal/lsp/source: find linkname directives without parsing + 2023-10-19 71f6a46 cmd/bundle: drop old +build lines + 2023-10-19 cdf1b5e cmd/present: drop NaCl reference from docs + 2023-10-18 99bbd3c go/callgraph/vta: use core type for struct fields + 2023-10-17 8ed1113 go/ssa: add support for range-over-int + 2023-10-16 7df9d5f gopls/internal/lsp: fix signature crash on error.Error Change-Id: I80b8c0040d9e3ec207446d07212ad671f60c4e7d
- Loading branch information
Showing
29 changed files
with
663 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
//go:build tag | ||
// +build tag | ||
|
||
// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT. | ||
// $ bundle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package test | ||
|
||
type embedded struct{} | ||
|
||
type S struct{ embedded } | ||
|
||
func (_ S) M() {} | ||
|
||
type C interface { | ||
M() | ||
S | ||
} | ||
|
||
func G[T C]() { | ||
t := T{embedded{}} | ||
t.M() | ||
} | ||
|
||
func F() { | ||
G[S]() | ||
} | ||
|
||
// WANT: | ||
// F: G[testdata.S]() -> G[testdata.S] | ||
// G[testdata.S]: (S).M(t2) -> S.M | ||
// S.M: (testdata.S).M(t1) -> S.M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.