mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Fix #10758 Add compiler option to parse in strict mode
* add unit test to ensure "use strict" is not added twice * fix code
This commit is contained in:
5
tests/cases/compiler/alwaysStrictAlreadyUseStrict.ts
Normal file
5
tests/cases/compiler/alwaysStrictAlreadyUseStrict.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// @alwaysStrict: true
|
||||
"use strict"
|
||||
function f() {
|
||||
var a = [];
|
||||
}
|
||||
Reference in New Issue
Block a user