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