mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
15 lines
195 B
TypeScript
15 lines
195 B
TypeScript
// @target:es5
|
|
var f1 = () => {
|
|
this.age = 10
|
|
};
|
|
|
|
var f2 = (x: string) => {
|
|
this.name = x
|
|
}
|
|
|
|
function foo(func: () => boolean) { }
|
|
foo(() => {
|
|
this.age = 100;
|
|
return true;
|
|
});
|