mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 20:14:05 -05:00
Merge branch '10758-always-strict' of https://github.com/slawomir/TypeScript into slawomir-10758-always-strict
This commit is contained in:
5
tests/cases/compiler/alwaysStrict.ts
Normal file
5
tests/cases/compiler/alwaysStrict.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// @alwaysStrict: true
|
||||
|
||||
function f() {
|
||||
var arguments = [];
|
||||
}
|
||||
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 = [];
|
||||
}
|
||||
6
tests/cases/compiler/alwaysStrictES6.ts
Normal file
6
tests/cases/compiler/alwaysStrictES6.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// @target: ES6
|
||||
// @alwaysStrict: true
|
||||
|
||||
function f() {
|
||||
var arguments = [];
|
||||
}
|
||||
8
tests/cases/compiler/alwaysStrictModule.ts
Normal file
8
tests/cases/compiler/alwaysStrictModule.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @module: commonjs
|
||||
// @alwaysStrict: true
|
||||
|
||||
module M {
|
||||
export function f() {
|
||||
var arguments = [];
|
||||
}
|
||||
}
|
||||
9
tests/cases/compiler/alwaysStrictNoImplicitUseStrict.ts
Normal file
9
tests/cases/compiler/alwaysStrictNoImplicitUseStrict.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// @module: commonjs
|
||||
// @alwaysStrict: true
|
||||
// @noImplicitUseStrict: true
|
||||
|
||||
module M {
|
||||
export function f() {
|
||||
var arguments = [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user