14 lines
177 B
TypeScript
14 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;
|
||
|
});
|