Skip to content

Commit

Permalink
fix test break
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jun 17, 2016
1 parent baa5a49 commit 47ab99f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
@@ -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.
}

@@ -1,24 +1,24 @@
tests/cases/compiler/checkGrammarStaticMemberName_es6.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_es6.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_es6.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_es6.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_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 (4 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 {
Expand Down
@@ -1,4 +1,4 @@
tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts(8,19): error TS2689: 'name' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts(8,19): error TS2690: 'name' is not allowed to be used as a name of a static property or method in a class.
tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts(12,1): error TS2322: Type 'C' is not assignable to type 'A'.
Property 'name' is missing in type 'C'.
tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.ts(13,1): error TS2322: Type 'typeof B' is not assignable to type 'A'.
Expand All @@ -19,7 +19,7 @@ tests/cases/compiler/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.
class C {
public static name() { }
~~~~
!!! 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.
}

var a: A = new B();
Expand Down

0 comments on commit 47ab99f

Please sign in to comment.