1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
tests/cases/compiler/moduleAsBaseType.ts(2,17): error TS2708: Cannot use namespace 'M' as a value.
tests/cases/compiler/moduleAsBaseType.ts(3,21): error TS2709: Cannot use namespace 'M' as a type.
tests/cases/compiler/moduleAsBaseType.ts(4,21): error TS2709: Cannot use namespace 'M' as a type.
==== tests/cases/compiler/moduleAsBaseType.ts (3 errors) ====
module M {}
class C extends M {}
~
!!! error TS2708: Cannot use namespace 'M' as a value.
interface I extends M { }
~
!!! error TS2709: Cannot use namespace 'M' as a type.
class C2 implements M { }
~
!!! error TS2709: Cannot use namespace 'M' as a type.
|