File: lift.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 (32 lines) | stat: -rw-r--r-- 1,095 bytes parent folder | download | duplicates (7)
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
tests/cases/compiler/lift.ts(14,32): error TS2304: Cannot find name 'x'.
tests/cases/compiler/lift.ts(14,34): error TS2304: Cannot find name 'z'.
tests/cases/compiler/lift.ts(15,37): error TS2304: Cannot find name 'x'.
tests/cases/compiler/lift.ts(15,39): error TS2304: Cannot find name 'z'.


==== tests/cases/compiler/lift.ts (4 errors) ====
    class B {
        constructor(public y:number) {
        }
        public ll:number;  // to be shadowed
    }
    
    class C extends B {
        constructor(y:number,z:number,w:number) {
            super(y)
            var x=10+w;
            var ll=x*w;
        }
    
        public liftxyz () { return x+z+this.y; }
                                   ~
!!! error TS2304: Cannot find name 'x'.
                                     ~
!!! error TS2304: Cannot find name 'z'.
        public liftxylocllz () { return x+z+this.y+this.ll; }
                                        ~
!!! error TS2304: Cannot find name 'x'.
                                          ~
!!! error TS2304: Cannot find name 'z'.
    }