13 lines
No EOL
464 B
Text
13 lines
No EOL
464 B
Text
==== tests/cases/compiler/errorForwardReferenceForwadingConstructor.ts (1 errors) ====
|
|
// Error forward referencing derived class with forwarding constructor
|
|
|
|
function f() {
|
|
var d1 = new derived();
|
|
~~~~~~~~~~~~~
|
|
!!! Supplied parameters do not match any signature of call target.
|
|
var d2 = new derived(4);
|
|
}
|
|
|
|
class base { constructor(public n: number) { } }
|
|
class derived extends base { }
|
|
|