TypeScript/tests/baselines/reference/selfRef.errors.txt

27 lines
700 B
Plaintext
Raw Normal View History

tests/cases/compiler/selfRef.ts(8,8): error TS2304: Cannot find name 'name'.
tests/cases/compiler/selfRef.ts(12,18): error TS2304: Cannot find name 'name'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/selfRef.ts (2 errors) ====
module M
{
export class Test
{
private name = "hello";
public setName = function(value: string): void {
(function () {
name=value;
~~~~
!!! error TS2304: Cannot find name 'name'.
2014-07-13 01:04:16 +02:00
})();
}
public getName = function(): string {
return name;
~~~~
!!! error TS2304: Cannot find name 'name'.
2014-07-13 01:04:16 +02:00
}
}
}