Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Xm (0.03 sec)

  1. src/internal/types/testdata/check/decls4.go

    }
    
    type eC struct {
    	eZ // eZ contributes xf, xm to eC
    }
    
    var (
    	_ = eA{}.xf
    	_ = eA{}.xm
    	_ = eA2{}.xf
    	_ = eA2{}.xm
    	_ = eB{}.xf
    	_ = eB{}.xm
    	_ = eB2{}.xf
    	_ = eB2{}.xm
    	_ = eC{}.xf
    	_ = eC{}.xm
    )
    
    // ambiguous selectors due to embedding via type aliases
    type eD struct {
    	eY
    	eZ
    }
    
    var (
    	_ = eD{}.xf /* ERROR "ambiguous selector eD{}.xf" */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/reflect/benchmark_test.go

    func BenchmarkInterfaceSmall(b *testing.B) {
    	v := ValueOf(int64(0))
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			v.Interface()
    		}
    	})
    }
    
    func BenchmarkNew(b *testing.B) {
    	v := TypeOf(XM{})
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			New(v)
    		}
    	})
    }
    
    func BenchmarkMap(b *testing.B) {
    	type V *int
    	type S string
    	value := ValueOf((V)(nil))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top