Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCanSetField (0.39 sec)

  1. src/reflect/all_test.go

    				t.Errorf(
    					"#%d: v.%s() returned %t for type %T, want %t",
    					i,
    					ops[j],
    					got[j],
    					tc.i,
    					tc.want[j],
    				)
    			}
    		}
    	}
    }
    
    func TestCanSetField(t *testing.T) {
    	type embed struct{ x, X int }
    	type Embed struct{ x, X int }
    	type S1 struct {
    		embed
    		x, X int
    	}
    	type S2 struct {
    		*embed
    		x, X int
    	}
    	type S3 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top