File: classAbstractMixedWithModifiers.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 (45 lines) | stat: -rw-r--r-- 2,863 bytes parent folder | download | duplicates (4)
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
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts(6,13): error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts(8,14): error TS1029: 'public' modifier must precede 'abstract' modifier.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts(9,14): error TS1029: 'protected' modifier must precede 'abstract' modifier.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts(10,14): error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts(12,14): error TS1243: 'static' modifier cannot be used with 'abstract' modifier.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts(13,12): error TS1243: 'static' modifier cannot be used with 'abstract' modifier.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts(15,14): error TS1243: 'async' modifier cannot be used with 'abstract' modifier.
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts(16,5): error TS1243: 'async' modifier cannot be used with 'abstract' modifier.


==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts (8 errors) ====
    abstract class A {
        abstract foo_a();
    
        public abstract foo_b();
        protected abstract foo_c();
        private abstract foo_d();
                ~~~~~~~~
!!! error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
    
        abstract public foo_bb();
                 ~~~~~~
!!! error TS1029: 'public' modifier must precede 'abstract' modifier.
        abstract protected foo_cc();
                 ~~~~~~~~~
!!! error TS1029: 'protected' modifier must precede 'abstract' modifier.
        abstract private foo_dd();
                 ~~~~~~~
!!! error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
    
        abstract static foo_d();
                 ~~~~~~
!!! error TS1243: 'static' modifier cannot be used with 'abstract' modifier.
        static abstract foo_e();
               ~~~~~~~~
!!! error TS1243: 'static' modifier cannot be used with 'abstract' modifier.
    
        abstract async foo_f();
                 ~~~~~
!!! error TS1243: 'async' modifier cannot be used with 'abstract' modifier.
        async abstract foo_g();
        ~~~~~
!!! error TS1243: 'async' modifier cannot be used with 'abstract' modifier.
    }