TypeScript/tests/cases/fourslash/quickinfoForUnionProperty.ts
2014-10-13 14:06:16 -07:00

28 lines
569 B
TypeScript

/// <reference path="fourslash.ts"/>
////interface One {
//// commonProperty: number;
//// commonFunction(): number;
////}
////
////interface Two {
//// commonProperty: string
//// commonFunction(): number;
////}
////
////var /*1*/x : One | Two;
////
////x./*2*/commonProperty;
////x./*3*/commonFunction;
goTo.marker("1");
verify.quickInfoIs('(var) x: One | Two');
goTo.marker("2");
verify.quickInfoIs('(property) commonProperty: string | number');
goTo.marker("3");
verify.quickInfoIs('(method) commonFunction(): number');