mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Accept new baseline
In recursiveBaseConstructorCreator3, the error message has improved to match the originally intended error.
This commit is contained in:
parent
b8af5248b5
commit
c94d534748
@ -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;
|
||||
Loading…
x
Reference in New Issue
Block a user