Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for bug7b (0.05 sec)

  1. src/html/template/exec_test.go

    	{"bug6a", "{{vfunc .V0 .V1}}", "vfunc", tVal, true},
    	{"bug6b", "{{vfunc .V0 .V0}}", "vfunc", tVal, true},
    	{"bug6c", "{{vfunc .V1 .V0}}", "vfunc", tVal, true},
    	{"bug6d", "{{vfunc .V1 .V1}}", "vfunc", tVal, true},
    	// Legal parse but illegal execution: non-function should have no arguments.
    	{"bug7a", "{{3 2}}", "", tVal, false},
    	{"bug7b", "{{$x := 1}}{{$x 2}}", "", tVal, false},
    	{"bug7c", "{{$x := 1}}{{3 | $x}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. src/text/template/exec_test.go

    	{"bug6a", "{{vfunc .V0 .V1}}", "vfunc", tVal, true},
    	{"bug6b", "{{vfunc .V0 .V0}}", "vfunc", tVal, true},
    	{"bug6c", "{{vfunc .V1 .V0}}", "vfunc", tVal, true},
    	{"bug6d", "{{vfunc .V1 .V1}}", "vfunc", tVal, true},
    	// Legal parse but illegal execution: non-function should have no arguments.
    	{"bug7a", "{{3 2}}", "", tVal, false},
    	{"bug7b", "{{$x := 1}}{{$x 2}}", "", tVal, false},
    	{"bug7c", "{{$x := 1}}{{3 | $x}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  3. test/fixedbugs/bug007.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type (
    	Point struct {
    		x, y float64
    	}
    	Polar Point
    )
    
    func main() {
    }
    
    /*
    bug7.go:5: addtyp: renaming Point to Polar
    main.go.c:14: error: redefinition of typedef ‘_T_2’
    main.go.c:13: error: previous declaration of ‘_T_2’ was here
    main.go.c:16: error: redefinition of ‘struct _T_2’
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 481 bytes
    - Viewed (0)
  4. src/text/template/parse/parse_test.go

    	{"continue in range else", "{{range .}}{{else}}{{continue}}{{end}}", hasError, ""},
    	// Other kinds of assignments and operators aren't available yet.
    	{"bug0a", "{{$x := 0}}{{$x}}", noError, "{{$x := 0}}{{$x}}"},
    	{"bug0b", "{{$x += 1}}{{$x}}", hasError, ""},
    	{"bug0c", "{{$x ! 2}}{{$x}}", hasError, ""},
    	{"bug0d", "{{$x % 3}}{{$x}}", hasError, ""},
    	// Check the parse fails for := rather than comma.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. src/encoding/json/encode_test.go

    			}
    		})
    	}
    }
    
    type BugA struct {
    	S string
    }
    
    type BugB struct {
    	BugA
    	S string
    }
    
    type BugC struct {
    	S string
    }
    
    // Legal Go: We never use the repeated embedded field (S).
    type BugX struct {
    	A int
    	BugA
    	BugB
    }
    
    // golang.org/issue/16042.
    // Even if a nil interface value is passed in, as long as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
Back to top