Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for simpleStmt (0.52 sec)

  1. src/go/types/stmt.go

    		check.openScope(s, "for")
    		defer check.closeScope()
    
    		check.simpleStmt(s.Init)
    		if s.Cond != nil {
    			var x operand
    			check.expr(nil, &x, s.Cond)
    			if x.mode != invalid && !allBoolean(x.typ) {
    				check.error(s.Cond, InvalidCond, "non-boolean condition in for statement")
    			}
    		}
    		check.simpleStmt(s.Post)
    		// spec: "The init statement may be a short variable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/stmt.go

    			break
    		}
    
    		check.openScope(s, "for")
    		defer check.closeScope()
    
    		check.simpleStmt(s.Init)
    		if s.Cond != nil {
    			var x operand
    			check.expr(nil, &x, s.Cond)
    			if x.mode != invalid && !allBoolean(x.typ) {
    				check.error(s.Cond, InvalidCond, "non-boolean condition in for statement")
    			}
    		}
    		check.simpleStmt(s.Post)
    		// spec: "The init statement may be a short variable
    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