Skip to content

Commit

Permalink
Add test for babel/babel#12065
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Oct 15, 2020
1 parent 6c20b0d commit 58cbf8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/typescript/class/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -21,6 +21,10 @@ class A {
}
}
class B {
constructor<>() {}
}
=====================================output=====================================
class foo {
constructor(static a: number) {}
Expand All @@ -37,6 +41,10 @@ class A {
}
}
class B {
constructor<>() {}
}
================================================================================
`;

Expand Down
4 changes: 4 additions & 0 deletions tests/typescript/class/constructor.ts
Expand Up @@ -12,3 +12,7 @@ class A {
return new A()
}
}

class B {
constructor<>() {}
}

0 comments on commit 58cbf8b

Please sign in to comment.