Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for bug6d (0.03 sec)

  1. src/text/template/exec_test.go

    	{"bug5a", "{{.Err}}", "erroozle", tVal, true},
    	// Args need to be indirected and dereferenced sometimes.
    	{"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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  2. src/encoding/json/encode_test.go

    	}
    }
    
    type BugD struct { // Same as BugA after tagging.
    	XXX string `json:"S"`
    }
    
    // BugD's tagged S field should dominate BugA's.
    type BugY struct {
    	BugA
    	BugD
    }
    
    // Test that a field with a tag dominates untagged fields.
    func TestTaggedFieldDominates(t *testing.T) {
    	v := BugY{
    		BugA{"BugA"},
    		BugD{"BugD"},
    	}
    	b, err := Marshal(v)
    	if err != nil {
    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