23 lines
488 B
TypeScript
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"
|
|
});
|