Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. test/fixedbugs/issue27595.go

    // license that can be found in the LICENSE file.
    
    package main
    
    var a = twoResults()       // ERROR "assignment mismatch: 1 variable but twoResults returns 2 values|multiple-value twoResults\(\) .*in single-value context"
    var b, c, d = twoResults() // ERROR "assignment mismatch: 3 variables but twoResults returns 2 values|cannot initialize"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 23 19:41:41 UTC 2021
    - 670 bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    	}
    
    	needsUnsafe := false
    	result := false
    	twoResults := false
    	if !call.Deferred {
    		// Check whether this call expects two results.
    		for _, ref := range f.Ref {
    			if ref.Expr != &call.Call.Fun {
    				continue
    			}
    			if ref.Context == ctxCall2 {
    				sb.WriteString("(")
    				result = true
    				twoResults = true
    			}
    			break
    		}
    
    		// Add the result type, if any.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top