From b332727c7c2cddcd96a65d51d23fd9840e6a2d05 Mon Sep 17 00:00:00 2001 From: Arthur Ozga Date: Tue, 23 Jun 2015 13:30:10 -0700 Subject: [PATCH] updated comment in test and baseline --- .../reference/classAbstractInstantiations2.errors.txt | 4 ++-- tests/baselines/reference/classAbstractInstantiations2.js | 8 ++++---- .../classAbstractKeyword/classAbstractInstantiations2.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/baselines/reference/classAbstractInstantiations2.errors.txt b/tests/baselines/reference/classAbstractInstantiations2.errors.txt index 8252887e98d..1f64759f86d 100644 --- a/tests/baselines/reference/classAbstractInstantiations2.errors.txt +++ b/tests/baselines/reference/classAbstractInstantiations2.errors.txt @@ -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'. diff --git a/tests/baselines/reference/classAbstractInstantiations2.js b/tests/baselines/reference/classAbstractInstantiations2.js index 5b868b3f795..1f45f02da0b 100644 --- a/tests/baselines/reference/classAbstractInstantiations2.js +++ b/tests/baselines/reference/classAbstractInstantiations2.js @@ -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) { diff --git a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations2.ts b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations2.ts index ef965dfe94b..3b68b898b94 100644 --- a/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations2.ts +++ b/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations2.ts @@ -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