-
Notifications
You must be signed in to change notification settings - Fork 12.2k
/
checkGrammarStaticMemberName_es5.errors.txt
60 lines (55 loc) · 4.09 KB
/
checkGrammarStaticMemberName_es5.errors.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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(8,9): 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(9,9): 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(10,9): 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(11,9): 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(16,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(17,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(18,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(19,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 (12 errors) ====
class static_property {
static length = 1;
~~~~~~~~~~~~~~~~~~
!!! 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 TS2690: 'name' is not allowed to be used as a name of a static property or method in a class.
static arguments = 1;
~~~~~~~~~~~~~~~~~~~~~
!!! 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 TS2690: 'caller' is not allowed to be used as a name of a static property or method in a class.
static foo = {
["length"]: 1,
~~~~~~~~~~
!!! error TS2690: 'length' is not allowed to be used as a name of a static property or method in a class.
["name"]: 1,
~~~~~~~~
!!! error TS2690: 'name' is not allowed to be used as a name of a static property or method in a class.
["arguments"]: 1,
~~~~~~~~~~~~~
!!! error TS2690: 'arguments' is not allowed to be used as a name of a static property or method in a class.
["caller"]: 1,
~~~~~~~~~~
!!! 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 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 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 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 TS2690: 'caller' is not allowed to be used as a name of a static property or method in a class.
}