Skip to content

Commit 2331531

Browse files
author
Arthur Ozga
committed
updated baselines
1 parent 61a9a64 commit 2331531

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/baselines/reference/classAbstractInstantiations1.errors.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts(8,1): error TS2511: Cannot create an instance of the abstract class 'A'.
2-
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts(10,1): error TS2511: Cannot create an instance of the abstract class 'C'.
2+
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts(9,1): error TS2511: Cannot create an instance of the abstract class 'A'.
3+
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts(11,1): error TS2511: Cannot create an instance of the abstract class 'C'.
34

45

5-
==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts (2 errors) ====
6+
==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations1.ts (3 errors) ====
67

78
abstract class A {}
89

@@ -12,6 +13,9 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbst
1213

1314
new A;
1415
~~~~~
16+
!!! error TS2511: Cannot create an instance of the abstract class 'A'.
17+
new A(1); // should report 1 error
18+
~~~~~~~~
1519
!!! error TS2511: Cannot create an instance of the abstract class 'A'.
1620
new B;
1721
new C;

tests/baselines/reference/classAbstractInstantiations1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class B extends A {}
77
abstract class C extends B {}
88

99
new A;
10+
new A(1); // should report 1 error
1011
new B;
1112
new C;
1213

@@ -45,6 +46,7 @@ var C = (function (_super) {
4546
return C;
4647
})(B);
4748
new A;
49+
new A(1); // should report 1 error
4850
new B;
4951
new C;
5052
var a;

0 commit comments

Comments
 (0)