49282d9fba
* Add nestedThisContainer test * Fix #36492
13 lines
177 B
TypeScript
13 lines
177 B
TypeScript
// @noImplicitThis:true
|
|
|
|
type Foo = any;
|
|
|
|
const foo: Foo = {};
|
|
|
|
foo.bar = function () {
|
|
const self: Foo = this;
|
|
};
|
|
|
|
foo.zab = (function () {
|
|
const self: Foo = this;
|
|
});
|