19 lines
350 B
TypeScript
19 lines
350 B
TypeScript
|
class class1 {
|
||
|
public prop1 = {
|
||
|
doStuff: (callback) => () => {
|
||
|
var _this = 2;
|
||
|
return callback(this);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class class2 {
|
||
|
constructor() {
|
||
|
var _this = 2;
|
||
|
}
|
||
|
public prop1 = {
|
||
|
doStuff: (callback) => () => {
|
||
|
return callback(this);
|
||
|
}
|
||
|
}
|
||
|
}
|