updated baselines
This commit is contained in:
parent
61a9a64619
commit
233153149a
|
@ -1,8 +1,9 @@
|
|||
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts(8,1): error TS2511: Cannot create an instance of the abstract class 'A'.
|
||||
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts(10,1): error TS2511: Cannot create an instance of the abstract class 'C'.
|
||||
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts(9,1): error TS2511: Cannot create an instance of the abstract class 'A'.
|
||||
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts(11,1): error TS2511: Cannot create an instance of the abstract class 'C'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts (2 errors) ====
|
||||
==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts (3 errors) ====
|
||||
|
||||
abstract class A {}
|
||||
|
||||
|
@ -12,6 +13,9 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbst
|
|||
|
||||
new A;
|
||||
~~~~~
|
||||
!!! error TS2511: Cannot create an instance of the abstract class 'A'.
|
||||
new A(1); // should report 1 error
|
||||
~~~~~~~~
|
||||
!!! error TS2511: Cannot create an instance of the abstract class 'A'.
|
||||
new B;
|
||||
new C;
|
||||
|
|
|
@ -7,6 +7,7 @@ class B extends A {}
|
|||
abstract class C extends B {}
|
||||
|
||||
new A;
|
||||
new A(1); // should report 1 error
|
||||
new B;
|
||||
new C;
|
||||
|
||||
|
@ -45,6 +46,7 @@ var C = (function (_super) {
|
|||
return C;
|
||||
})(B);
|
||||
new A;
|
||||
new A(1); // should report 1 error
|
||||
new B;
|
||||
new C;
|
||||
var a;
|
||||
|
|
Loading…
Reference in a new issue