mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
446 B
Plaintext
18 lines
446 B
Plaintext
fluentInterfaces.ts(11,9): error TS2454: Variable 'c' is used before being assigned.
|
|
|
|
|
|
==== fluentInterfaces.ts (1 errors) ====
|
|
interface A {
|
|
foo(): this;
|
|
}
|
|
interface B extends A {
|
|
bar(): this;
|
|
}
|
|
interface C extends B {
|
|
baz(): this;
|
|
}
|
|
var c: C;
|
|
var z = c.foo().bar().baz(); // Fluent pattern
|
|
~
|
|
!!! error TS2454: Variable 'c' is used before being assigned.
|
|
|