updated comment in test and baseline

This commit is contained in:
Arthur Ozga
2015-06-23 13:30:10 -07:00
parent d34b23a7a1
commit b332727c7c
3 changed files with 8 additions and 8 deletions

View File

@@ -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'.

View File

@@ -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) {

View File

@@ -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