2014-10-08 07:48:16 +02:00
|
|
|
///<reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
////interface One {
|
|
|
|
//// commonProperty: number;
|
|
|
|
//// commonFunction(): number;
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////interface Two {
|
|
|
|
//// commonProperty: string
|
|
|
|
//// commonFunction(): number;
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////var x : One | Two;
|
|
|
|
////
|
|
|
|
////x./**/
|
|
|
|
|
|
|
|
goTo.marker();
|
2014-10-13 23:06:16 +02:00
|
|
|
verify.memberListContains("commonProperty", "(property) commonProperty: string | number");
|
|
|
|
verify.memberListContains("commonFunction", "(method) commonFunction(): number");
|
2014-10-08 07:48:16 +02:00
|
|
|
verify.memberListCount(2);
|