clang-format: [JS] Test for parameter annotations.

Summary: Just to ensure no regressions, this already works fine.

Reviewers: djasper

Subscribers: cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D18950

llvm-svn: 265922
This commit is contained in:
Martin Probst 2016-04-11 09:17:57 +00:00
parent 86bc97b79e
commit 716a533a7f
1 changed files with 3 additions and 0 deletions

View File

@ -936,6 +936,9 @@ TEST_F(FormatTestJS, MetadataAnnotations) {
" return 'y';\n"
" }\n"
"}");
verifyFormat("class C {\n"
" private x(@A x: string) {}\n"
"}");
verifyFormat("class X {}\n"
"class Y {}");
}