mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
595 B
Plaintext
25 lines
595 B
Plaintext
//// [tests/cases/compiler/commentOnAmbientfunction.ts] ////
|
|
|
|
=== b.ts ===
|
|
///<reference path="a.ts"/>
|
|
declare function foobar(a: typeof foo): typeof bar;
|
|
>foobar : Symbol(foobar, Decl(b.ts, 0, 0))
|
|
>a : Symbol(a, Decl(b.ts, 1, 24))
|
|
>foo : Symbol(foo, Decl(a.ts, 0, 0))
|
|
>bar : Symbol(bar, Decl(a.ts, 6, 23))
|
|
|
|
=== a.ts ===
|
|
/*!=========
|
|
Keep this pinned comment
|
|
=========
|
|
*/
|
|
|
|
/*! Don't keep this pinned comment */
|
|
declare function foo();
|
|
>foo : Symbol(foo, Decl(a.ts, 0, 0))
|
|
|
|
// Don't keep this comment.
|
|
declare function bar();
|
|
>bar : Symbol(bar, Decl(a.ts, 6, 23))
|
|
|