mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
fix #982
This commit is contained in:
11
testdata/confusing-naming1.go
vendored
11
testdata/confusing-naming1.go
vendored
@@ -70,3 +70,14 @@ type y[T any] struct{}
|
||||
|
||||
func (y[T]) method() {
|
||||
}
|
||||
|
||||
// issue #982
|
||||
type a[T any] struct{}
|
||||
|
||||
func (x *a[T]) method() {
|
||||
}
|
||||
|
||||
type b[T any] struct{}
|
||||
|
||||
func (x *b[T]) method() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user