6 lines
183 B
Plaintext
6 lines
183 B
Plaintext
==== tests/cases/compiler/thisKeyword.ts (1 errors) ====
|
|
module foo {
|
|
this.bar = 4;
|
|
~~~~
|
|
!!! error TS2331: 'this' cannot be referenced in a module body.
|
|
} |