TypeScript/tests/baselines/reference/declarationEmitFunctionDuplicateNamespace.types

25 lines
331 B
Plaintext

=== tests/cases/compiler/declarationEmitFunctionDuplicateNamespace.ts ===
function f(a: 0): 0;
>f : typeof f
>a : 0
function f(a: 1): 1;
>f : typeof f
>a : 1
function f(a: 0 | 1) {
>f : typeof f
>a : 0 | 1
return a;
>a : 0 | 1
}
f.x = 2;
>f.x = 2 : 2
>f.x : number
>f : typeof f
>x : number
>2 : 2