Files

17 lines
468 B
JSON

// === Code Lenses ===
// === /codeLensOverloads01.ts ===
//
// export function /*CODELENS: 3 references*/foo(x: number): number;
// export function foo(x: string): string;
// export function foo(x: string | number): string | number {
// return x;
// }
//
// [|foo|](1);
//
// [|foo|]("hello");
//
// // This one isn't expected to match any overload,
// // but is really just here to test how it affects how code lens.
// [|foo|](Math.random() ? 1 : "hello");
//