TypeScript/tests/cases/fourslash/goToDefinitionUnionTypeProperty1.ts

19 lines
491 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
////interface One {
//// /*propertyDefinition1*/commonProperty: number;
//// commonFunction(): number;
////}
////
////interface Two {
//// /*propertyDefinition2*/commonProperty: string
//// commonFunction(): number;
////}
////
////var x : One | Two;
////
2017-10-19 00:49:46 +02:00
////x.[|/*propertyReference*/commonProperty|];
////x./*3*/commonFunction;
2016-08-29 22:34:32 +02:00
verify.goToDefinition("propertyReference", ["propertyDefinition1", "propertyDefinition2"]);