Skip to content

Commit 822199f

Browse files
committed
Added test for formatting on protected modifier
1 parent 4853fd0 commit 822199f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/cases/fourslash/formattingOnClasses.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
/////*60*/ private foo ( ns : any ) {
7878
/////*61*/ return ns.toString ( ) ;
7979
/////*62*/ }
80-
/////*63*/}
80+
/////*63*/ protected bar ( ) { }
81+
/////*64*/ protected static bar2 ( ) { }
82+
/////*65*/}
8183
format.document();
8284
goTo.marker("1");
8385
verify.currentLineContentIs("class a {");
@@ -204,4 +206,8 @@ verify.currentLineContentIs(" return ns.toString();");
204206
goTo.marker("62");
205207
verify.currentLineContentIs(" }");
206208
goTo.marker("63");
209+
verify.currentLineContentIs(" protected bar() { }");
210+
goTo.marker("64");
211+
verify.currentLineContentIs(" protected static bar2() { }");
212+
goTo.marker("65");
207213
verify.currentLineContentIs("}");

0 commit comments

Comments
 (0)