Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDuplicatedFieldDisappears (0.37 sec)

  1. src/encoding/json/encode_test.go

    	}
    }
    
    // There are no tags here, so S should not appear.
    type BugZ struct {
    	BugA
    	BugC
    	BugY // Contains a tagged S field through BugD; should not dominate.
    }
    
    func TestDuplicatedFieldDisappears(t *testing.T) {
    	v := BugZ{
    		BugA{"BugA"},
    		BugC{"BugC"},
    		BugY{
    			BugA{"nested BugA"},
    			BugD{"nested 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