26 lines
No EOL
739 B
Text
26 lines
No EOL
739 B
Text
==== 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; }
|
|
~
|
|
!!! Cannot find name 'x'.
|
|
~
|
|
!!! Cannot find name 'z'.
|
|
public liftxylocllz () { return x+z+this.y+this.ll; }
|
|
~
|
|
!!! Cannot find name 'x'.
|
|
~
|
|
!!! Cannot find name 'z'.
|
|
}
|
|
|