@@ -137,6 +137,9 @@ describe('Method snippets', () => {
137137 function foo(this: {}) {}
138138 foo/*3*/
139139
140+ // new class
141+ new Something(foo/*301*/)
142+
140143 // contextual type
141144 declare const bar: {
142145 b: (a) => {}
@@ -173,6 +176,7 @@ describe('Method snippets', () => {
173176 compareMethodSnippetAgainstMarker ( markers , 1 , null )
174177 compareMethodSnippetAgainstMarker ( markers , 2 , '()' )
175178 compareMethodSnippetAgainstMarker ( markers , 3 , '(a)' )
179+ compareMethodSnippetAgainstMarker ( markers , 301 , '(a)' )
176180 compareMethodSnippetAgainstMarker ( markers , 4 , '($b)' )
177181 compareMethodSnippetAgainstMarker ( markers , 5 , '(a, b, { d, e: {} }, ...c)' )
178182 compareMethodSnippetAgainstMarker ( markers , 6 , '(a, b, c)' )
@@ -188,13 +192,17 @@ describe('Method snippets', () => {
188192 protected constructor(a) {}
189193 }
190194
195+ class C {}
196+
191197 new A/*1*/
192198 // not sure...
193199 new B/*2*/
200+ new C/*3*/
194201 ` )
195202
196203 compareMethodSnippetAgainstMarker ( markers , 1 , [ 'a' ] )
197204 compareMethodSnippetAgainstMarker ( markers , 2 , null )
205+ compareMethodSnippetAgainstMarker ( markers , 3 , [ ] )
198206 } )
199207
200208 test ( 'Skip trailing void' , ( ) => {
0 commit comments