Skip to content

Commit

Permalink
rebase and fix code of the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Sep 14, 2016
1 parent 95b333c commit e61a7ee
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
@@ -1,60 +1,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(3,5): error TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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 TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: 'caller' is not allowed to be used as a name of a static property or method in a class.
}

@@ -1,41 +1,41 @@
tests/cases/compiler/checkGrammarStaticMemberName_es6.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_es6.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_es6.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_es6.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_es6.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_es6.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_es6.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_es6.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_es6.ts(3,5): error TS2695: 'length' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/checkGrammarStaticMemberName_es6.ts(4,5): error TS2695: 'name' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/checkGrammarStaticMemberName_es6.ts(5,5): error TS2695: 'arguments' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/checkGrammarStaticMemberName_es6.ts(6,5): error TS2695: 'caller' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/checkGrammarStaticMemberName_es6.ts(8,9): error TS2695: 'length' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/checkGrammarStaticMemberName_es6.ts(9,9): error TS2695: 'name' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/checkGrammarStaticMemberName_es6.ts(10,9): error TS2695: 'arguments' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/checkGrammarStaticMemberName_es6.ts(11,9): error TS2695: 'caller' is not allowed to be used as a name of a static property or method in a class.


==== tests/cases/compiler/checkGrammarStaticMemberName_es6.ts (8 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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: '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.
!!! error TS2695: 'caller' is not allowed to be used as a name of a static property or method in a class.
};
}

Expand Down

0 comments on commit e61a7ee

Please sign in to comment.