Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for forType (0.14 sec)

  1. src/reflect/value.go

    	}
    	for i := 0; i < n; i++ {
    		if xt, targ := in[i].Type(), t.In(i); !xt.AssignableTo(toRType(targ)) {
    			panic("reflect: " + op + " using " + xt.String() + " as type " + stringFor(targ))
    		}
    	}
    	if !isSlice && isVariadic {
    		// prepare slice for remaining values
    		m := len(in) - n
    		slice := MakeSlice(toRType(t.In(n)), m, m)
    		elem := toRType(t.In(n)).Elem() // FIXME cast to slice type and Elem()
    		for i := 0; i < m; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top