Accept baselines

This commit is contained in:
AbubakerB
2016-02-04 22:52:38 +00:00
parent 16b54e0d9f
commit 037b65781f
4 changed files with 26 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts(15,9): error TS2673: Constructor of type '(x: number): D' is private and only accessible within class 'D'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts(16,9): error TS2674: Constructor of type '(x: number): E' is protected and only accessible within class 'E'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts(32,13): error TS2673: Constructor of type '<T>(x: T): D<T>' is private and only accessible within class 'D<T>'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts(33,13): error TS2674: Constructor of type '<T>(x: T): E<T>' is protected and only accessible within class 'E<T>'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts(15,9): error TS2673: Constructor of class 'D' is private and only accessible within the class declaration.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts(16,9): error TS2674: Constructor of class 'E' is protected and only accessible within the class declaration.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts(32,13): error TS2673: Constructor of class 'D<T>' is private and only accessible within the class declaration.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts(33,13): error TS2674: Constructor of class 'E<T>' is protected and only accessible within the class declaration.
==== tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility.ts (4 errors) ====
@@ -21,10 +21,10 @@ tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessib
var c = new C(1);
var d = new D(1); // error
~~~~~~~~
!!! error TS2673: Constructor of type '(x: number): D' is private and only accessible within class 'D'.
!!! error TS2673: Constructor of class 'D' is private and only accessible within the class declaration.
var e = new E(1); // error
~~~~~~~~
!!! error TS2674: Constructor of type '(x: number): E' is protected and only accessible within class 'E'.
!!! error TS2674: Constructor of class 'E' is protected and only accessible within the class declaration.
module Generic {
class C<T> {
@@ -42,9 +42,9 @@ tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessib
var c = new C(1);
var d = new D(1); // error
~~~~~~~~
!!! error TS2673: Constructor of type '<T>(x: T): D<T>' is private and only accessible within class 'D<T>'.
!!! error TS2673: Constructor of class 'D<T>' is private and only accessible within the class declaration.
var e = new E(1); // error
~~~~~~~~
!!! error TS2674: Constructor of type '<T>(x: T): E<T>' is protected and only accessible within class 'E<T>'.
!!! error TS2674: Constructor of class 'E<T>' is protected and only accessible within the class declaration.
}

View File

@@ -1,8 +1,8 @@
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(26,28): error TS2674: Constructor of type '(x: number): BaseB' is protected and only accessible within class 'BaseB'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(29,24): error TS2675: Cannot extend private class 'BaseC'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(32,28): error TS2673: Constructor of type '(x: number): BaseC' is private and only accessible within class 'BaseC'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(36,10): error TS2674: Constructor of type '(x: number): BaseB' is protected and only accessible within class 'BaseB'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(37,10): error TS2673: Constructor of type '(x: number): BaseC' is private and only accessible within class 'BaseC'.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(26,28): error TS2674: Constructor of class 'BaseB' is protected and only accessible within the class declaration.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(29,24): error TS2675: Cannot extend a class 'BaseC'. Class constructor is marked as private.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(32,28): error TS2673: Constructor of class 'BaseC' is private and only accessible within the class declaration.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(36,10): error TS2674: Constructor of class 'BaseB' is protected and only accessible within the class declaration.
tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts(37,10): error TS2673: Constructor of class 'BaseC' is private and only accessible within the class declaration.
==== tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessibility2.ts (5 errors) ====
@@ -33,26 +33,26 @@ tests/cases/conformance/classes/constructorDeclarations/classConstructorAccessib
createInstance() { new DerivedB(1); }
createBaseInstance() { new BaseB(1); } // error
~~~~~~~~~~~~
!!! error TS2674: Constructor of type '(x: number): BaseB' is protected and only accessible within class 'BaseB'.
!!! error TS2674: Constructor of class 'BaseB' is protected and only accessible within the class declaration.
}
class DerivedC extends BaseC { // error
~~~~~
!!! error TS2675: Cannot extend private class 'BaseC'.
!!! error TS2675: Cannot extend a class 'BaseC'. Class constructor is marked as private.
constructor(public x: number) { super(x); }
createInstance() { new DerivedC(1); }
createBaseInstance() { new BaseC(1); } // error
~~~~~~~~~~~~
!!! error TS2673: Constructor of type '(x: number): BaseC' is private and only accessible within class 'BaseC'.
!!! error TS2673: Constructor of class 'BaseC' is private and only accessible within the class declaration.
}
var ba = new BaseA(1);
var bb = new BaseB(1); // error
~~~~~~~~~~~~
!!! error TS2674: Constructor of type '(x: number): BaseB' is protected and only accessible within class 'BaseB'.
!!! error TS2674: Constructor of class 'BaseB' is protected and only accessible within the class declaration.
var bc = new BaseC(1); // error
~~~~~~~~~~~~
!!! error TS2673: Constructor of type '(x: number): BaseC' is private and only accessible within class 'BaseC'.
!!! error TS2673: Constructor of class 'BaseC' is private and only accessible within the class declaration.
var da = new DerivedA(1);
var db = new DerivedB(1);

View File

@@ -1,5 +1,5 @@
tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(6,9): error TS2673: Constructor of type '(): C' is private and only accessible within class 'C'.
tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(14,10): error TS2673: Constructor of type '(x: number): C2' is private and only accessible within class 'C2'.
tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(6,9): error TS2673: Constructor of class 'C' is private and only accessible within the class declaration.
tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(14,10): error TS2673: Constructor of class 'C2' is private and only accessible within the class declaration.
==== tests/cases/conformance/types/members/typesWithPrivateConstructor.ts (2 errors) ====
@@ -10,7 +10,7 @@ tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(14,10): err
var c = new C(); // error C is private
~~~~~~~
!!! error TS2673: Constructor of type '(): C' is private and only accessible within class 'C'.
!!! error TS2673: Constructor of class 'C' is private and only accessible within the class declaration.
var r: () => void = c.constructor;
class C2 {
@@ -20,5 +20,5 @@ tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(14,10): err
var c2 = new C2(); // error C2 is private
~~~~~~~~
!!! error TS2673: Constructor of type '(x: number): C2' is private and only accessible within class 'C2'.
!!! error TS2673: Constructor of class 'C2' is private and only accessible within the class declaration.
var r2: (x: number) => void = c2.constructor;

View File

@@ -1,5 +1,5 @@
tests/cases/conformance/types/members/typesWithProtectedConstructor.ts(6,9): error TS2674: Constructor of type '(): C' is protected and only accessible within class 'C'.
tests/cases/conformance/types/members/typesWithProtectedConstructor.ts(14,10): error TS2674: Constructor of type '(x: number): C2' is protected and only accessible within class 'C2'.
tests/cases/conformance/types/members/typesWithProtectedConstructor.ts(6,9): error TS2674: Constructor of class 'C' is protected and only accessible within the class declaration.
tests/cases/conformance/types/members/typesWithProtectedConstructor.ts(14,10): error TS2674: Constructor of class 'C2' is protected and only accessible within the class declaration.
==== tests/cases/conformance/types/members/typesWithProtectedConstructor.ts (2 errors) ====
@@ -10,7 +10,7 @@ tests/cases/conformance/types/members/typesWithProtectedConstructor.ts(14,10): e
var c = new C(); // error C is protected
~~~~~~~
!!! error TS2674: Constructor of type '(): C' is protected and only accessible within class 'C'.
!!! error TS2674: Constructor of class 'C' is protected and only accessible within the class declaration.
var r: () => void = c.constructor;
class C2 {
@@ -20,5 +20,5 @@ tests/cases/conformance/types/members/typesWithProtectedConstructor.ts(14,10): e
var c2 = new C2(); // error C2 is protected
~~~~~~~~
!!! error TS2674: Constructor of type '(x: number): C2' is protected and only accessible within class 'C2'.
!!! error TS2674: Constructor of class 'C2' is protected and only accessible within the class declaration.
var r2: (x: number) => void = c2.constructor;