Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for RecvOnly (0.22 sec)

  1. src/cmd/compile/internal/types2/stmt.go

    			return
    		}
    		uch, _ := u.(*Chan)
    		if uch == nil {
    			check.errorf(s, InvalidSend, invalidOp+"cannot send to non-channel %s", &ch)
    			return
    		}
    		if uch.dir == RecvOnly {
    			check.errorf(s, InvalidSend, invalidOp+"cannot send to receive-only channel %s", &ch)
    			return
    		}
    		check.assignment(&val, uch.elem, "send")
    
    	case *syntax.AssignStmt:
    		if s.Rhs == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top