From 5c6c2baece3dbf06bdc76bf581415eea40c24cd7 Mon Sep 17 00:00:00 2001 From: Seth Bunce Date: Tue, 16 May 2023 20:13:09 -0700 Subject: [PATCH] nested-structs: show issue with "struct{}" detection --- testdata/nested-structs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testdata/nested-structs.go b/testdata/nested-structs.go index 18f5e2d3a..1e317d015 100644 --- a/testdata/nested-structs.go +++ b/testdata/nested-structs.go @@ -61,4 +61,7 @@ type mySetInterface interface { type test struct { foo []chan struct{} // Must not match bar map[string]struct{} // Must not match + baz generic[struct{}] // Must not match } + +type generic [T any] struct {}