File: moduleAsBaseType.errors.txt

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (16 lines) | stat: -rw-r--r-- 627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
moduleAsBaseType.ts(2,17): error TS2708: Cannot use namespace 'M' as a value.
moduleAsBaseType.ts(3,21): error TS2709: Cannot use namespace 'M' as a type.
moduleAsBaseType.ts(4,21): error TS2709: Cannot use namespace 'M' as a type.


==== 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.