18 lines
378 B
Plaintext
18 lines
378 B
Plaintext
|
=== tests/cases/compiler/methodSignatureDeclarationEmit1.ts ===
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
public foo(n: number): void;
|
||
|
>foo : { (n: number): void; (s: string): void; }
|
||
|
>n : number
|
||
|
|
||
|
public foo(s: string): void;
|
||
|
>foo : { (n: number): void; (s: string): void; }
|
||
|
>s : string
|
||
|
|
||
|
public foo(a: any): void {
|
||
|
>foo : { (n: number): void; (s: string): void; }
|
||
|
>a : any
|
||
|
}
|
||
|
}
|