Skip to content

Commit

Permalink
Add test for babel/babel#12085
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Oct 15, 2020
1 parent 7979066 commit b19743f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/typescript/declare/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -50,6 +50,8 @@ declare namespace A {
function y(): void;
}
declare function f([]?)
=====================================output=====================================
declare function x();
declare function y(): void;
Expand All @@ -59,6 +61,8 @@ declare namespace A {
function y(): void;
}
declare function f([]?);
================================================================================
`;

Expand Down
2 changes: 2 additions & 0 deletions tests/typescript/declare/declare_function.ts
Expand Up @@ -5,3 +5,5 @@ declare namespace A {
function x();
function y(): void;
}

declare function f([]?)

0 comments on commit b19743f

Please sign in to comment.