Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for EGood (0.02 sec)

  1. test/typeparam/mdempsky/15.go

    func TestE[T any]() { Test[T, interface{ EBad() }, interface{ EGood() }]() }
    func TestX[T any]() { Test[T, interface{ XBad() }, interface{ XGood() }]() }
    
    type E struct{}
    
    //go:nointerface
    func (E) EBad()  {}
    func (E) EGood() {}
    
    type X[T any] struct{ E }
    
    //go:nointerface
    func (X[T]) XBad()  {}
    func (X[T]) XGood() {}
    
    type W struct{ X[int] }
    
    func main() {
    	_ = E.EGood
    	_ = E.EBad
    
    	TestE[E]()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top