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
1 parent
baa5a49
commit 47ab99f
Showing
3 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
32 changes: 16 additions & 16 deletions
32
tests/baselines/reference/checkGrammarStaticMemberName_es5.errors.txt
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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(3,5): error TS2689: 'length' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(4,5): error TS2689: 'name' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(5,5): error TS2689: 'arguments' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(6,5): error TS2689: 'caller' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(10,12): error TS2689: 'length' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(11,12): error TS2689: 'name' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(12,12): error TS2689: 'arguments' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(13,12): error TS2689: 'caller' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(3,5): error TS2690: 'length' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(4,5): error TS2690: 'name' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(5,5): error TS2690: 'arguments' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(6,5): error TS2690: 'caller' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(10,12): error TS2690: 'length' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(11,12): error TS2690: 'name' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(12,12): error TS2690: 'arguments' is not allowed to be used as a name of a static property or method in a class. | ||
tests/cases/compiler/checkGrammarStaticMemberName_es5.ts(13,12): error TS2690: 'caller' is not allowed to be used as a name of a static property or method in a class. | ||
|
||
|
||
==== tests/cases/compiler/checkGrammarStaticMemberName_es5.ts (8 errors) ==== | ||
|
||
class static_property { | ||
static length = 1; | ||
~~~~~~~~~~~~~~~~~~ | ||
!!! error TS2689: 'length' is not allowed to be used as a name of a static property or method in a class. | ||
!!! error TS2690: 'length' is not allowed to be used as a name of a static property or method in a class. | ||
static name = 1; | ||
~~~~~~~~~~~~~~~~ | ||
!!! error TS2689: 'name' is not allowed to be used as a name of a static property or method in a class. | ||
!!! error TS2690: 'name' is not allowed to be used as a name of a static property or method in a class. | ||
static arguments = 1; | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
!!! error TS2689: 'arguments' is not allowed to be used as a name of a static property or method in a class. | ||
!!! error TS2690: 'arguments' is not allowed to be used as a name of a static property or method in a class. | ||
static caller = 1; | ||
~~~~~~~~~~~~~~~~~~ | ||
!!! error TS2689: 'caller' is not allowed to be used as a name of a static property or method in a class. | ||
!!! error TS2690: 'caller' is not allowed to be used as a name of a static property or method in a class. | ||
} | ||
|
||
class static_method { | ||
static length() { return 1; } | ||
~~~~~~ | ||
!!! error TS2689: 'length' is not allowed to be used as a name of a static property or method in a class. | ||
!!! error TS2690: 'length' is not allowed to be used as a name of a static property or method in a class. | ||
static name() { return 1; } | ||
~~~~ | ||
!!! error TS2689: 'name' is not allowed to be used as a name of a static property or method in a class. | ||
!!! error TS2690: 'name' is not allowed to be used as a name of a static property or method in a class. | ||
static arguments() { return 1; } | ||
~~~~~~~~~ | ||
!!! error TS2689: 'arguments' is not allowed to be used as a name of a static property or method in a class. | ||
!!! error TS2690: 'arguments' is not allowed to be used as a name of a static property or method in a class. | ||
static caller() { return 1; } | ||
~~~~~~ | ||
!!! error TS2689: 'caller' is not allowed to be used as a name of a static property or method in a class. | ||
!!! error TS2690: 'caller' is not allowed to be used as a name of a static property or method in a class. | ||
} | ||
|
16 changes: 8 additions & 8 deletions
16
tests/baselines/reference/checkGrammarStaticMemberName_es6.errors.txt
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