TypeScript/tests/baselines/reference/errorForwardReferenceForwadingConstructor.errors.txt

16 lines
633 B
Plaintext
Raw Normal View History

tests/cases/compiler/errorForwardReferenceForwadingConstructor.ts(4,14): error TS2346: Supplied parameters do not match any signature of call target.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/errorForwardReferenceForwadingConstructor.ts (1 errors) ====
// Error forward referencing derived class with forwarding constructor
function f() {
var d1 = new derived();
~~~~~~~~~~~~~
!!! error TS2346: Supplied parameters do not match any signature of call target.
2014-07-13 01:04:16 +02:00
var d2 = new derived(4);
}
class base { constructor(public n: number) { } }
class derived extends base { }