TypeScript/tests/cases/fourslash/quickinfoForUnionProperty.ts
2016-09-13 11:49:01 -07:00

23 lines
488 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;
verify.quickInfos({
1: "var x: One | Two",
2: "(property) commonProperty: string | number",
3: "(method) commonFunction(): number"
});