TypeScript/tests/cases/fourslash/goToDefinitionUnionTypeProperty1.ts
2017-10-18 15:49:46 -07:00

19 lines
491 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"]);