Accept new baseline

In recursiveBaseConstructorCreator3, the error message has improved to
match the originally intended error.
This commit is contained in:
Nathan Shively-Sanders 2015-12-04 09:00:32 -08:00
parent b8af5248b5
commit c94d534748

View File

@ -1,5 +1,5 @@
tests/cases/compiler/recursiveBaseConstructorCreation3.ts(6,27): error TS2314: Generic type 'abc<T>' requires 1 type argument(s).
tests/cases/compiler/recursiveBaseConstructorCreation3.ts(10,18): error TS2339: Property 'foo' does not exist on type 'xyz'.
tests/cases/compiler/recursiveBaseConstructorCreation3.ts(9,11): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
==== tests/cases/compiler/recursiveBaseConstructorCreation3.ts (2 errors) ====
@ -14,6 +14,6 @@ tests/cases/compiler/recursiveBaseConstructorCreation3.ts(10,18): error TS2339:
}
var bar = new xyz(); // Error: Invalid 'new' expression.
var r: xyz = bar.foo;
~~~
!!! error TS2339: Property 'foo' does not exist on type 'xyz'.
~~~~~~~~~
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
var r: xyz = bar.foo;