mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
updated comment in test and baseline
This commit is contained in:
@@ -27,13 +27,13 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbst
|
||||
new AA;
|
||||
|
||||
function constructB(Factory : typeof B) {
|
||||
new Factory; // error -- Factory is of type typeof C
|
||||
new Factory; // error -- Factory is of type typeof B.
|
||||
~~~~~~~~~~~
|
||||
!!! error TS2511: Cannot create an instance of the abstract class 'B'.
|
||||
}
|
||||
|
||||
var BB = B;
|
||||
new BB; // error -- BB is of type typeof C
|
||||
new BB; // error -- BB is of type typeof B.
|
||||
~~~~~~
|
||||
!!! error TS2511: Cannot create an instance of the abstract class 'B'.
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ var AA: typeof A = BB; // error, AA is not of abstract type.
|
||||
new AA;
|
||||
|
||||
function constructB(Factory : typeof B) {
|
||||
new Factory; // error -- Factory is of type typeof C
|
||||
new Factory; // error -- Factory is of type typeof B.
|
||||
}
|
||||
|
||||
var BB = B;
|
||||
new BB; // error -- BB is of type typeof C
|
||||
new BB; // error -- BB is of type typeof B.
|
||||
|
||||
var x : any = C;
|
||||
new x; // okay -- undefined behavior at runtime
|
||||
@@ -73,10 +73,10 @@ var BB = B;
|
||||
var AA = BB; // error, AA is not of abstract type.
|
||||
new AA;
|
||||
function constructB(Factory) {
|
||||
new Factory; // error -- Factory is of type typeof C
|
||||
new Factory; // error -- Factory is of type typeof B.
|
||||
}
|
||||
var BB = B;
|
||||
new BB; // error -- BB is of type typeof C
|
||||
new BB; // error -- BB is of type typeof B.
|
||||
var x = C;
|
||||
new x; // okay -- undefined behavior at runtime
|
||||
var C = (function (_super) {
|
||||
|
||||
@@ -14,11 +14,11 @@ var AA: typeof A = BB; // error, AA is not of abstract type.
|
||||
new AA;
|
||||
|
||||
function constructB(Factory : typeof B) {
|
||||
new Factory; // error -- Factory is of type typeof C
|
||||
new Factory; // error -- Factory is of type typeof B.
|
||||
}
|
||||
|
||||
var BB = B;
|
||||
new BB; // error -- BB is of type typeof C
|
||||
new BB; // error -- BB is of type typeof B.
|
||||
|
||||
var x : any = C;
|
||||
new x; // okay -- undefined behavior at runtime
|
||||
|
||||
Reference in New Issue
Block a user