Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewConcrete (0.09 sec)

  1. test/typeparam/issue51232.go

    }
    
    func (c *concreteF[RCT, RG]) Fn() Fn[RCT] { // ERROR "not enough type arguments for type Fn: have 1, want 2"
    	return c.makeFn()
    }
    
    func NewConcrete[RCT RC[RG], RG any](Rc RCT) F[RCT] { // ERROR "not enough type arguments for type F: have 1, want 2"
    	return &concreteF[RCT]{ // ERROR "cannot use" "not enough type arguments for type concreteF: have 1, want 2"
    		makeFn: nil,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:50:55 UTC 2023
    - 898 bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue51232.go

    }
    
    func (c *concreteF[RCT, RG]) Fn() Fn /* ERROR "not enough type arguments for type Fn: have 1, want 2" */ [RCT] {
    	return c.makeFn()
    }
    
    func NewConcrete[RCT RC[RG], RG any](Rc RCT) F /* ERROR "not enough type arguments for type F: have 1, want 2" */ [RCT] {
    	// TODO(rfindley): eliminate the duplicate error below.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:50:55 UTC 2023
    - 989 bytes
    - Viewed (0)
Back to top