File: classAbstractMergedDeclaration.errors.txt

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (91 lines) | stat: -rw-r--r-- 4,699 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(13,16): error TS2300: Duplicate identifier 'CC1'.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(14,7): error TS2300: Duplicate identifier 'CC1'.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(16,7): error TS2300: Duplicate identifier 'CC2'.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(17,16): error TS2300: Duplicate identifier 'CC2'.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(25,24): error TS2300: Duplicate identifier 'DCC1'.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(26,15): error TS2300: Duplicate identifier 'DCC1'.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(28,15): error TS2300: Duplicate identifier 'DCC2'.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(29,24): error TS2300: Duplicate identifier 'DCC2'.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(31,1): error TS2511: Cannot create an instance of an abstract class.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(32,1): error TS2511: Cannot create an instance of an abstract class.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(33,1): error TS2511: Cannot create an instance of an abstract class.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(34,1): error TS2511: Cannot create an instance of an abstract class.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(35,1): error TS2511: Cannot create an instance of an abstract class.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(37,1): error TS2511: Cannot create an instance of an abstract class.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(38,1): error TS2511: Cannot create an instance of an abstract class.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts(39,1): error TS2511: Cannot create an instance of an abstract class.


==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMergedDeclaration.ts (16 errors) ====
    abstract class CM {}
    module CM {}
    
    module MC {}
    abstract class MC {}
    
    abstract class CI {}
    interface CI {}
    
    interface IC {}
    abstract class IC {}
    
    abstract class CC1 {}
                   ~~~
!!! error TS2300: Duplicate identifier 'CC1'.
    class CC1 {}
          ~~~
!!! error TS2300: Duplicate identifier 'CC1'.
    
    class CC2 {}
          ~~~
!!! error TS2300: Duplicate identifier 'CC2'.
    abstract class CC2 {}
                   ~~~
!!! error TS2300: Duplicate identifier 'CC2'.
    
    declare abstract class DCI {}
    interface DCI {}
    
    interface DIC {}
    declare abstract class DIC {}
    
    declare abstract class DCC1 {}
                           ~~~~
!!! error TS2300: Duplicate identifier 'DCC1'.
    declare class DCC1 {}
                  ~~~~
!!! error TS2300: Duplicate identifier 'DCC1'.
    
    declare class DCC2 {}
                  ~~~~
!!! error TS2300: Duplicate identifier 'DCC2'.
    declare abstract class DCC2 {}
                           ~~~~
!!! error TS2300: Duplicate identifier 'DCC2'.
    
    new CM;
    ~~~~~~
!!! error TS2511: Cannot create an instance of an abstract class.
    new MC;
    ~~~~~~
!!! error TS2511: Cannot create an instance of an abstract class.
    new CI;
    ~~~~~~
!!! error TS2511: Cannot create an instance of an abstract class.
    new IC;
    ~~~~~~
!!! error TS2511: Cannot create an instance of an abstract class.
    new CC1;
    ~~~~~~~
!!! error TS2511: Cannot create an instance of an abstract class.
    new CC2;
    new DCI;
    ~~~~~~~
!!! error TS2511: Cannot create an instance of an abstract class.
    new DIC;
    ~~~~~~~
!!! error TS2511: Cannot create an instance of an abstract class.
    new DCC1;
    ~~~~~~~~
!!! error TS2511: Cannot create an instance of an abstract class.
    new DCC2;