mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
59 lines
1.0 KiB
TypeScript
59 lines
1.0 KiB
TypeScript
//// [tests/cases/compiler/commentOnSignature1.ts] ////
|
|
|
|
//// [a.ts]
|
|
/*!=================
|
|
Keep this pinned
|
|
=================
|
|
*/
|
|
|
|
/*! Don't keep this pinned comment */
|
|
function foo(n: number): void;
|
|
// Don't keep this comment.
|
|
function foo(s: string): void;
|
|
function foo(a: any): void {
|
|
}
|
|
|
|
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) {
|
|
}
|
|
}
|
|
|
|
//// [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 {
|
|
}
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
/*!=================
|
|
Keep this pinned
|
|
=================
|
|
*/
|
|
function foo(a) {
|
|
}
|
|
class c {
|
|
constructor(a) {
|
|
}
|
|
foo(a) {
|
|
}
|
|
}
|
|
//// [b.js]
|
|
"use strict";
|
|
///<reference path='a.ts'/>
|
|
function foo2(a) {
|
|
}
|