* add compiler option alwaysStrict * compile in strict mode when option is set * emit "use strict"
10 lines
309 B
Plaintext
10 lines
309 B
Plaintext
tests/cases/compiler/alwaysStrict.ts(3,9): error TS1100: Invalid use of 'arguments' in strict mode.
|
|
|
|
|
|
==== tests/cases/compiler/alwaysStrict.ts (1 errors) ====
|
|
|
|
function f() {
|
|
var arguments = [];
|
|
~~~~~~~~~
|
|
!!! error TS1100: Invalid use of 'arguments' in strict mode.
|
|
} |