@@ -409,7 +409,7 @@ public void testSimpleRemoval1() {
409
409
test (
410
410
"const foo = (p1)=>{ }; foo(); foo()" , //
411
411
"const foo = ( )=>{var p1;}; foo(); foo()" );
412
- testSame ("const foo = ( /** @noinline */ p1)=>{}; foo(); foo()" );
412
+ testSame ("class foo { /** @usedViaDotConstructor */ constructor( p1) {}} new foo(); new foo()" );
413
413
414
414
// constant parameter
415
415
test (
@@ -421,7 +421,8 @@ public void testSimpleRemoval1() {
421
421
test (
422
422
"const foo = (p1)=>{ }; foo(1); foo(1)" ,
423
423
"const foo = ( )=>{var p1 = 1;}; foo( ); foo( )" );
424
- testSame ("const foo = (/** @noinline */ p1)=>{}; foo(1); foo(1)" );
424
+ testSame (
425
+ "class foo { /** @usedViaDotConstructor */ constructor(p1) {}} new foo(1); new foo(1)" );
425
426
}
426
427
427
428
@ Test
@@ -441,7 +442,7 @@ public void testSimpleRemoval2() {
441
442
test (
442
443
"function f(p1) { } new f(1,x()); new f(1,y())" ,
443
444
"function f( ) {var p1 = 1;} new f( x()); new f( y())" );
444
- testSame ("function f( /** @noinline */ p1) {} new f(); new f()" );
445
+ testSame ("/** @usedViaDotConstructor */ function f( p1) {} new f(); new f()" );
445
446
}
446
447
447
448
@ Test
@@ -469,22 +470,22 @@ public void testSimpleRemoval4() {
469
470
test (
470
471
"function f(p1) { } f.prop = 1; new f(); new f()" ,
471
472
"function f( ) {var p1;} f.prop = 1; new f(); new f()" );
472
- testSame ("function f( /** @noinline */ p1) {} f.prop = 1; new f(); new f()" );
473
+ testSame ("/** @usedViaDotConstructor */ function f( p1) {} f.prop = 1; new f(); new f()" );
473
474
474
475
test (
475
476
"function f(p1) { } f.prop = 1; new f(1); new f(1)" ,
476
477
"function f( ) {var p1 = 1;} f.prop = 1; new f( ); new f( )" );
477
- testSame ("function f( /** @noinline */ p1) {} f.prop = 1; new f(1); new f(1)" );
478
+ testSame ("/** @usedViaDotConstructor */ function f( p1) {} f.prop = 1; new f(1); new f(1)" );
478
479
479
480
test (
480
481
"function f(p1) { } f['prop'] = 1; new f(); new f()" ,
481
482
"function f( ) {var p1;} f['prop'] = 1; new f(); new f()" );
482
- testSame ("function f( /** @noinline */ p1) {} f['prop'] = 1; new f(); new f()" );
483
+ testSame ("/** @usedViaDotConstructor */ function f( p1) {} f['prop'] = 1; new f(); new f()" );
483
484
484
485
test (
485
486
"function f(p1) { } f['prop'] = 1; new f(1); new f(1)" ,
486
487
"function f( ) {var p1 = 1;} f['prop'] = 1; new f( ); new f( )" );
487
- testSame ("function f( /** @noinline */ p1) {} f['prop'] = 1; new f(1); new f(1)" );
488
+ testSame ("/** @usedViaDotConstructor */ function f( p1) {} f['prop'] = 1; new f(1); new f(1)" );
488
489
}
489
490
490
491
@ Test
0 commit comments