mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
classExtendsInterfaceInModule.ts(5,18): error TS2689: Cannot extend an interface 'M.I1'. Did you mean 'implements'?
|
|
classExtendsInterfaceInModule.ts(6,21): error TS2689: Cannot extend an interface 'M.I2'. Did you mean 'implements'?
|
|
classExtendsInterfaceInModule.ts(14,17): error TS2689: Cannot extend an interface 'Mod.Nested.I'. Did you mean 'implements'?
|
|
|
|
|
|
==== classExtendsInterfaceInModule.ts (3 errors) ====
|
|
namespace M {
|
|
export interface I1 {}
|
|
export interface I2<T> {}
|
|
}
|
|
class C1 extends M.I1 {}
|
|
~
|
|
!!! error TS2689: Cannot extend an interface 'M.I1'. Did you mean 'implements'?
|
|
class C2<T> extends M.I2<T> {}
|
|
~
|
|
!!! error TS2689: Cannot extend an interface 'M.I2'. Did you mean 'implements'?
|
|
|
|
namespace Mod {
|
|
export namespace Nested {
|
|
export interface I {}
|
|
}
|
|
}
|
|
|
|
class D extends Mod.Nested.I {}
|
|
~~~
|
|
!!! error TS2689: Cannot extend an interface 'Mod.Nested.I'. Did you mean 'implements'?
|
|
|