Skip to content

Commit 8c681a9

Browse files
committed
[clang-format][NFC] Add a TypeScript test case
See llvm#108530.
1 parent 8b02d80 commit 8c681a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/unittests/Format/FormatTestJS.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,10 @@ TEST_F(FormatTestJS, ClassDeclarations) {
17531753
" x: {y: Z;} = {};\n"
17541754
" private y: {y: Z;} = {};\n"
17551755
"}");
1756+
verifyFormat("class Foo {\n"
1757+
" private addGrammarCheckOneboxProductInfo(\n"
1758+
" productInfo: {[key: string]: string;}) {}\n"
1759+
"}");
17561760

17571761
// ':' is not a type declaration here.
17581762
verifyFormat("class X {\n"

0 commit comments

Comments
 (0)