2014-08-22 23:40:47 +02:00
|
|
|
=== tests/cases/compiler/b.ts ===
|
|
|
|
///<reference path='a.ts'/>
|
|
|
|
function foo2(n: number): void;
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo2 : { (n: number): void; (s: string): void; }
|
|
|
|
>n : number
|
2014-08-22 23:40:47 +02:00
|
|
|
|
|
|
|
// Don't keep this comment.
|
|
|
|
function foo2(s: string): void;
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo2 : { (n: number): void; (s: string): void; }
|
|
|
|
>s : string
|
2014-08-22 23:40:47 +02:00
|
|
|
|
|
|
|
function foo2(a: any): void {
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo2 : { (n: number): void; (s: string): void; }
|
|
|
|
>a : any
|
2014-08-22 23:40:47 +02:00
|
|
|
}
|
|
|
|
=== tests/cases/compiler/a.ts ===
|
2014-08-15 23:33:16 +02:00
|
|
|
/*! Keep this pinned comment */
|
|
|
|
function foo(n: number): void;
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (n: number): void; (s: string): void; }
|
|
|
|
>n : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// Don't keep this comment.
|
|
|
|
function foo(s: string): void;
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (n: number): void; (s: string): void; }
|
|
|
|
>s : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function foo(a: any): void {
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (n: number): void; (s: string): void; }
|
|
|
|
>a : any
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
2014-08-22 23:40:47 +02:00
|
|
|
|
|
|
|
class c {
|
2015-04-16 01:44:20 +02:00
|
|
|
>c : c
|
2014-08-22 23:40:47 +02:00
|
|
|
|
|
|
|
// dont keep this comment
|
|
|
|
constructor(a: string);
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : string
|
2014-08-22 23:40:47 +02:00
|
|
|
|
|
|
|
/*! keep this pinned comment */
|
|
|
|
constructor(a: number);
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : number
|
2014-08-22 23:40:47 +02:00
|
|
|
|
|
|
|
constructor(a: any) {
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : any
|
2014-08-22 23:40:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// dont keep this comment
|
|
|
|
foo(a: string);
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (a: string): any; (a: number): any; }
|
|
|
|
>a : string
|
2014-08-22 23:40:47 +02:00
|
|
|
|
|
|
|
/*! keep this pinned comment */
|
|
|
|
foo(a: number);
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (a: string): any; (a: number): any; }
|
|
|
|
>a : number
|
2014-08-22 23:40:47 +02:00
|
|
|
|
|
|
|
foo(a: any) {
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (a: string): any; (a: number): any; }
|
|
|
|
>a : any
|
2014-08-22 23:40:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|