Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestEmbeddedMethod (0.13 sec)

  1. src/cmd/compile/internal/types2/object_test.go

    		{t5, false}, // type name refers to type parameter and vice versa
    	} {
    		check(test.name, test.alias)
    	}
    }
    
    // TestEmbeddedMethod checks that an embedded method is represented by
    // the same Func Object as the original method. See also go.dev/issue/34421.
    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/go/types/object_test.go

    		{t5, false}, // type name refers to type parameter and vice versa
    	} {
    		check(test.name, test.alias)
    	}
    }
    
    // TestEmbeddedMethod checks that an embedded method is represented by
    // the same Func Object as the original method. See also go.dev/issue/34421.
    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top