-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Work around Go bug 68877 until Go 1.23.1 is released (#121)
- Loading branch information
1 parent
7862d53
commit 156f83c
Showing
6 changed files
with
74 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
// Check that we don't panic | ||
// Copied from https://github.com/golang/go/issues/68877#issuecomment-2290000187 | ||
type ( | ||
T struct{} | ||
U = T | ||
S U | ||
) |
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,51 @@ | ||
package main | ||
// ^^^^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/ | ||
// documentation | ||
// > package main | ||
|
||
// Check that we don't panic | ||
// Copied from https://github.com/golang/go/issues/68877#issuecomment-2290000187 | ||
type ( | ||
T struct{} | ||
// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/T# | ||
// documentation | ||
// > ```go | ||
// > type T struct | ||
// > ``` | ||
// documentation | ||
// > Check that we don't panic | ||
// > Copied from https://github.com/golang/go/issues/68877#issuecomment-2290000187 | ||
// documentation | ||
// > ```go | ||
// > struct{} | ||
// > ``` | ||
U = T | ||
// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# | ||
// documentation | ||
// > ```go | ||
// > type U = T | ||
// > ``` | ||
// documentation | ||
// > Check that we don't panic | ||
// > Copied from https://github.com/golang/go/issues/68877#issuecomment-2290000187 | ||
// documentation | ||
// > ```go | ||
// > struct{} | ||
// > ``` | ||
// ^ reference github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/T# | ||
S U | ||
// ^ definition github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/S# | ||
// documentation | ||
// > ```go | ||
// > type S struct | ||
// > ``` | ||
// documentation | ||
// > Check that we don't panic | ||
// > Copied from https://github.com/golang/go/issues/68877#issuecomment-2290000187 | ||
// documentation | ||
// > ```go | ||
// > struct{} | ||
// > ``` | ||
// ^ reference github.com/sourcegraph/scip-go . `github.com/sourcegraph/scip-go/internal/testdata/snapshots/input/alias`/U# | ||
) | ||
|
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