Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AFuncType (0.11 sec)

  1. src/go/doc/testdata/generics.1.golden

    	// Single is not a factory function. 
    	func Single[T any]() *T
    
    	// Slice is not a factory function. 
    	func Slice[T any]() []T
    
    
    TYPES
    	// AFuncType demonstrates filtering of parameters and type ...
    	type AFuncType[T ~struct{ f int }] func(_ struct{ f int })
    
    	// Constraint is a constraint interface with two type parameters. 
    	type Constraint[P, Q interface{ string | ~int | Type[int] }] interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. src/go/doc/testdata/generics.0.golden

    	// Single is not a factory function. 
    	func Single[T any]() *T
    
    	// Slice is not a factory function. 
    	func Slice[T any]() []T
    
    
    TYPES
    	// AFuncType demonstrates filtering of parameters and type ...
    	type AFuncType[T ~struct{ f int }] func(_ struct {
    		// contains filtered or unexported fields
    	})
    
    	// Constraint is a constraint interface with two type parameters. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  3. src/go/doc/testdata/generics.2.golden

    	// Single is not a factory function. 
    	func Single[T any]() *T
    
    	// Slice is not a factory function. 
    	func Slice[T any]() []T
    
    
    TYPES
    	// AFuncType demonstrates filtering of parameters and type ...
    	type AFuncType[T ~struct{ f int }] func(_ struct {
    		// contains filtered or unexported fields
    	})
    
    	// Constraint is a constraint interface with two type parameters. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  4. src/go/doc/testdata/generics.go

    // Neither type parameters nor regular parameters should be filtered.
    func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) {}
    
    // AFuncType demonstrates filtering of parameters and type parameters. Here we
    // don't filter type parameters (to be consistent with function declarations),
    // but DO filter the RHS.
    type AFuncType[T ~struct{ f int }] func(_ struct{ f int })
    
    // See issue #49477: type parameters should not be interpreted as named types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top