-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
187 changed files
with
14,821 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
tests/cases/conformance/pragma/alwaysStrict/file1.ts(2,5): error TS1212: Identifier expected. 'private' is a reserved word in strict mode. | ||
tests/cases/conformance/pragma/alwaysStrict/file2.ts(2,5): error TS1212: Identifier expected. 'protected' is a reserved word in strict mode. | ||
|
||
|
||
==== tests/cases/conformance/pragma/alwaysStrict/file1.ts (1 errors) ==== | ||
// @ts-alwaysStrict | ||
let private = {}; | ||
~~~~~~~ | ||
!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode. | ||
==== tests/cases/conformance/pragma/alwaysStrict/file2.ts (1 errors) ==== | ||
// @ts-alwaysStrict true | ||
let protected = {}; | ||
~~~~~~~~~ | ||
!!! error TS1212: Identifier expected. 'protected' is a reserved word in strict mode. | ||
==== tests/cases/conformance/pragma/alwaysStrict/file3.ts (0 errors) ==== | ||
// @ts-alwaysStrict false | ||
let public = {}; | ||
==== tests/cases/conformance/pragma/alwaysStrict/file4.ts (0 errors) ==== | ||
let static = {}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//// [tests/cases/conformance/pragma/alwaysStrict/alwaysStrictPragma1.ts] //// | ||
|
||
//// [file1.ts] | ||
// @ts-alwaysStrict | ||
let private = {}; | ||
//// [file2.ts] | ||
// @ts-alwaysStrict true | ||
let protected = {}; | ||
//// [file3.ts] | ||
// @ts-alwaysStrict false | ||
let public = {}; | ||
//// [file4.ts] | ||
let static = {}; | ||
|
||
|
||
//// [file1.js] | ||
"use strict"; | ||
// @ts-alwaysStrict | ||
var private = {}; | ||
//// [file2.js] | ||
"use strict"; | ||
// @ts-alwaysStrict true | ||
var protected = {}; | ||
//// [file3.js] | ||
// @ts-alwaysStrict false | ||
var public = {}; | ||
//// [file4.js] | ||
var static = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
=== tests/cases/conformance/pragma/alwaysStrict/file1.ts === | ||
// @ts-alwaysStrict | ||
let private = {}; | ||
>private : Symbol(private, Decl(file1.ts, 1, 3)) | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file2.ts === | ||
// @ts-alwaysStrict true | ||
let protected = {}; | ||
>protected : Symbol(protected, Decl(file2.ts, 1, 3)) | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file3.ts === | ||
// @ts-alwaysStrict false | ||
let public = {}; | ||
>public : Symbol(public, Decl(file3.ts, 1, 3)) | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file4.ts === | ||
let static = {}; | ||
>static : Symbol(static, Decl(file4.ts, 0, 3)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
=== tests/cases/conformance/pragma/alwaysStrict/file1.ts === | ||
// @ts-alwaysStrict | ||
let private = {}; | ||
>private : {} | ||
>{} : {} | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file2.ts === | ||
// @ts-alwaysStrict true | ||
let protected = {}; | ||
>protected : {} | ||
>{} : {} | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file3.ts === | ||
// @ts-alwaysStrict false | ||
let public = {}; | ||
>public : {} | ||
>{} : {} | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file4.ts === | ||
let static = {}; | ||
>static : {} | ||
>{} : {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
tests/cases/conformance/pragma/alwaysStrict/file1.ts(2,5): error TS1212: Identifier expected. 'private' is a reserved word in strict mode. | ||
tests/cases/conformance/pragma/alwaysStrict/file2.ts(2,5): error TS1212: Identifier expected. 'protected' is a reserved word in strict mode. | ||
tests/cases/conformance/pragma/alwaysStrict/file4.ts(1,5): error TS1212: Identifier expected. 'static' is a reserved word in strict mode. | ||
|
||
|
||
==== tests/cases/conformance/pragma/alwaysStrict/file1.ts (1 errors) ==== | ||
// @ts-alwaysStrict | ||
let private = {}; | ||
~~~~~~~ | ||
!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode. | ||
==== tests/cases/conformance/pragma/alwaysStrict/file2.ts (1 errors) ==== | ||
// @ts-alwaysStrict true | ||
let protected = {}; | ||
~~~~~~~~~ | ||
!!! error TS1212: Identifier expected. 'protected' is a reserved word in strict mode. | ||
==== tests/cases/conformance/pragma/alwaysStrict/file3.ts (0 errors) ==== | ||
// @ts-alwaysStrict false | ||
let public = {}; | ||
==== tests/cases/conformance/pragma/alwaysStrict/file4.ts (1 errors) ==== | ||
let static = {}; | ||
~~~~~~ | ||
!!! error TS1212: Identifier expected. 'static' is a reserved word in strict mode. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//// [tests/cases/conformance/pragma/alwaysStrict/alwaysStrictPragma2.ts] //// | ||
|
||
//// [file1.ts] | ||
// @ts-alwaysStrict | ||
let private = {}; | ||
//// [file2.ts] | ||
// @ts-alwaysStrict true | ||
let protected = {}; | ||
//// [file3.ts] | ||
// @ts-alwaysStrict false | ||
let public = {}; | ||
//// [file4.ts] | ||
let static = {}; | ||
|
||
|
||
//// [file1.js] | ||
"use strict"; | ||
// @ts-alwaysStrict | ||
var private = {}; | ||
//// [file2.js] | ||
"use strict"; | ||
// @ts-alwaysStrict true | ||
var protected = {}; | ||
//// [file3.js] | ||
// @ts-alwaysStrict false | ||
var public = {}; | ||
//// [file4.js] | ||
"use strict"; | ||
var static = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
=== tests/cases/conformance/pragma/alwaysStrict/file1.ts === | ||
// @ts-alwaysStrict | ||
let private = {}; | ||
>private : Symbol(private, Decl(file1.ts, 1, 3)) | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file2.ts === | ||
// @ts-alwaysStrict true | ||
let protected = {}; | ||
>protected : Symbol(protected, Decl(file2.ts, 1, 3)) | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file3.ts === | ||
// @ts-alwaysStrict false | ||
let public = {}; | ||
>public : Symbol(public, Decl(file3.ts, 1, 3)) | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file4.ts === | ||
let static = {}; | ||
>static : Symbol(static, Decl(file4.ts, 0, 3)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
=== tests/cases/conformance/pragma/alwaysStrict/file1.ts === | ||
// @ts-alwaysStrict | ||
let private = {}; | ||
>private : {} | ||
>{} : {} | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file2.ts === | ||
// @ts-alwaysStrict true | ||
let protected = {}; | ||
>protected : {} | ||
>{} : {} | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file3.ts === | ||
// @ts-alwaysStrict false | ||
let public = {}; | ||
>public : {} | ||
>{} : {} | ||
|
||
=== tests/cases/conformance/pragma/alwaysStrict/file4.ts === | ||
let static = {}; | ||
>static : {} | ||
>{} : {} | ||
|
Oops, something went wrong.