mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
20 lines
219 B
TypeScript
20 lines
219 B
TypeScript
namespace N1 {
|
|
var x;
|
|
let y;
|
|
}
|
|
|
|
namespace N2 {
|
|
var x;
|
|
let y;
|
|
}
|
|
|
|
namespace N2 { // OK
|
|
var w;
|
|
}
|
|
|
|
function f(x: number): number;
|
|
function f(x: string): string; // OK
|
|
function f(x: any): any { // OK
|
|
return x;
|
|
}
|