20 lines
No EOL
546 B
TypeScript
20 lines
No EOL
546 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////function foo(strOrNum: string | number) {
|
|
//// /*1*/
|
|
//// if (typeof strOrNum === "number") {
|
|
//// strOrNum/*2*/;
|
|
//// }
|
|
//// else {
|
|
//// strOrNum/*3*/;
|
|
//// }
|
|
////}
|
|
|
|
goTo.marker('1');
|
|
verify.completionListContains("strOrNum", "(parameter) strOrNum: string | number");
|
|
|
|
goTo.marker('2');
|
|
verify.completionListContains("strOrNum", "(parameter) strOrNum: number");
|
|
|
|
goTo.marker('3');
|
|
verify.completionListContains("strOrNum", "(parameter) strOrNum: string"); |