2014-11-07 00:19:27 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////function foo(strOrNum: string | number) {
|
|
|
|
//// /*1*/
|
|
|
|
//// if (typeof strOrNum === "number") {
|
2016-04-10 02:56:33 +02:00
|
|
|
//// strOrNum/*2*/;
|
2014-11-07 00:19:27 +01:00
|
|
|
//// }
|
|
|
|
//// else {
|
2016-04-10 02:56:33 +02:00
|
|
|
//// strOrNum/*3*/;
|
2014-11-07 00:19:27 +01:00
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
|
|
|
{ marker: "1", includes: { name: "strOrNum", text: "(parameter) strOrNum: string | number" } },
|
|
|
|
{ marker: "2", includes: { name: "strOrNum", text: "(parameter) strOrNum: number" } },
|
|
|
|
{ marker: "3", includes: { name: "strOrNum", text: "(parameter) strOrNum: string" } },
|
|
|
|
);
|