mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
717 B
Plaintext
32 lines
717 B
Plaintext
classWithMultipleBaseClasses.ts(18,7): error TS2420: Class 'D' incorrectly implements interface 'I'.
|
|
Type 'D' is missing the following properties from type 'I': foo, bar
|
|
|
|
|
|
==== classWithMultipleBaseClasses.ts (1 errors) ====
|
|
class A {
|
|
foo() { }
|
|
}
|
|
|
|
class B {
|
|
bar() { }
|
|
}
|
|
|
|
interface I {
|
|
baz();
|
|
}
|
|
|
|
interface J {
|
|
bat();
|
|
}
|
|
|
|
|
|
class D implements I, J {
|
|
~
|
|
!!! error TS2420: Class 'D' incorrectly implements interface 'I'.
|
|
!!! error TS2420: Type 'D' is missing the following properties from type 'I': foo, bar
|
|
baz() { }
|
|
bat() { }
|
|
}
|
|
|
|
interface I extends A, B {
|
|
} |