9 lines
No EOL
316 B
Text
9 lines
No EOL
316 B
Text
tests/cases/compiler/thisKeyword.ts(2,5): error TS2331: 'this' cannot be referenced in a module or namespace body.
|
|
|
|
|
|
==== tests/cases/compiler/thisKeyword.ts (1 errors) ====
|
|
module foo {
|
|
this.bar = 4;
|
|
~~~~
|
|
!!! error TS2331: 'this' cannot be referenced in a module or namespace body.
|
|
} |