Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TypeAssertionError (0.12 sec)

  1. src/cmd/compile/internal/test/testdata/assert_test.go

    	}
    }
    
    func testAssertE2TPanic(t *testing.T) {
    	var got *U
    	defer func() {
    		if got != nil {
    			t.Errorf("e2t_ssa(s)=%v want nil", got)
    		}
    		e := recover()
    		err, ok := e.(*runtime.TypeAssertionError)
    		if !ok {
    			t.Errorf("e2t_ssa(s) panic type %T", e)
    		}
    		want := "interface conversion: interface {} is *main.S, not *main.U"
    		if err.Error() != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 2.5K bytes
    - Viewed (0)
Back to top