23 lines
510 B
Plaintext
23 lines
510 B
Plaintext
|
==== tests/cases/compiler/selfRef.ts (2 errors) ====
|
||
|
module M
|
||
|
{
|
||
|
export class Test
|
||
|
{
|
||
|
private name = "hello";
|
||
|
public setName = function(value: string): void {
|
||
|
(function () {
|
||
|
name=value;
|
||
|
~~~~
|
||
|
!!! Cannot find name 'name'.
|
||
|
})();
|
||
|
}
|
||
|
public getName = function(): string {
|
||
|
return name;
|
||
|
~~~~
|
||
|
!!! Cannot find name 'name'.
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|