Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bug15 (0.04 sec)

  1. src/text/template/parse/parse_test.go

    	{"bug0e", "{{range $x := $y := 3}}{{end}}", hasError, ""},
    	// Another bug: variable read must ignore following punctuation.
    	{"bug1a", "{{$x:=.}}{{$x!2}}", hasError, ""},                     // ! is just illegal here.
    	{"bug1b", "{{$x:=.}}{{$x+2}}", hasError, ""},                     // $x+2 should not parse as ($x) (+2).
    	{"bug1c", "{{$x:=.}}{{$x +2}}", noError, "{{$x := .}}{{$x +2}}"}, // It's OK with a space.
    	// dot following a literal value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top