TypeScript/tests/cases/fourslash/goToDefinitionUnionTypeProperty1.ts
2016-09-02 10:12:40 -07:00

19 lines
487 B
TypeScript

/// <reference path='fourslash.ts' />
////interface One {
//// /*propertyDefinition1*/commonProperty: number;
//// commonFunction(): number;
////}
////
////interface Two {
//// /*propertyDefinition2*/commonProperty: string
//// commonFunction(): number;
////}
////
////var x : One | Two;
////
////x./*propertyReference*/commonProperty;
////x./*3*/commonFunction;
verify.goToDefinition("propertyReference", ["propertyDefinition1", "propertyDefinition2"]);