Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for argErrPos (0.1 sec)

  1. src/go/types/builtins.go

    	}
    
    	// check argument count
    	{
    		msg := ""
    		if nargs < bin.nargs {
    			msg = "not enough"
    		} else if !bin.variadic && nargs > bin.nargs {
    			msg = "too many"
    		}
    		if msg != "" {
    			check.errorf(argErrPos(call), WrongArgCount, invalidOp+"%s arguments for %v (expected %d, found %d)", msg, call, bin.nargs, nargs)
    			return
    		}
    	}
    
    	switch id {
    	case _Append:
    		// append(s S, x ...T) S, where T is the element type of S
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/builtins.go

    	}
    
    	// check argument count
    	{
    		msg := ""
    		if nargs < bin.nargs {
    			msg = "not enough"
    		} else if !bin.variadic && nargs > bin.nargs {
    			msg = "too many"
    		}
    		if msg != "" {
    			check.errorf(argErrPos(call), WrongArgCount, invalidOp+"%s arguments for %v (expected %d, found %d)", msg, call, bin.nargs, nargs)
    			return
    		}
    	}
    
    	switch id {
    	case _Append:
    		// append(s S, x ...T) S, where T is the element type of S
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top