2014-10-08 07:49:06 +02:00
|
|
|
/// <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");
|
2014-10-13 23:06:16 +02:00
|
|
|
verify.quickInfoIs('(var) x: One | Two');
|
2014-10-08 07:49:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
goTo.marker("2");
|
2014-10-13 23:06:16 +02:00
|
|
|
verify.quickInfoIs('(property) commonProperty: string | number');
|
2014-10-08 07:49:06 +02:00
|
|
|
|
|
|
|
goTo.marker("3");
|
2014-10-13 23:06:16 +02:00
|
|
|
verify.quickInfoIs('(method) commonFunction(): number');
|