github.com/cockroachdb/tools@v0.0.0-20230222021103-a6d27438930d/go/analysis/passes/usesgenerics/testdata/src/d/d.go (about)

     1  // want package:`features{typeSet}`
     2  
     3  package d
     4  
     5  type myInt int
     6  
     7  func _() {
     8  	// Sanity check that we can both detect local types and interfaces with
     9  	// embedded defined types.
    10  	type constraint interface {
    11  		myInt
    12  	}
    13  }