mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
15 lines
192 B
TypeScript
15 lines
192 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;
|
|
});
|