TypeScript/tests/baselines/reference/commentOnSignature1.js
2015-12-08 17:51:10 -08:00

58 lines
1 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]
/*!=================
Keep this pinned
=================
*/
function foo(a) {
}
var c = (function () {
function c(a) {
}
c.prototype.foo = function (a) {
};
return c;
}());
//// [b.js]
///<reference path='a.ts'/>
function foo2(a) {
}