23 lines
No EOL
510 B
Text
23 lines
No EOL
510 B
Text
==== 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'.
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|