mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
496 B
TypeScript
28 lines
496 B
TypeScript
//// [tests/cases/compiler/commentOnAmbientfunction.ts] ////
|
|
|
|
//// [a.ts]
|
|
/*!=========
|
|
Keep this pinned comment
|
|
=========
|
|
*/
|
|
|
|
/*! Don't keep this pinned comment */
|
|
declare function foo();
|
|
|
|
// Don't keep this comment.
|
|
declare function bar();
|
|
|
|
//// [b.ts]
|
|
///<reference path="a.ts"/>
|
|
declare function foobar(a: typeof foo): typeof bar;
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
/*!=========
|
|
Keep this pinned comment
|
|
=========
|
|
*/
|
|
//// [b.js]
|
|
"use strict";
|
|
///<reference path="a.ts"/>
|