mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
15 lines
191 B
TypeScript
15 lines
191 B
TypeScript
// @target:es6
|
|
var f1 = () => {
|
|
this.age = 10
|
|
};
|
|
|
|
var f2 = (x: string) => {
|
|
this.name = x
|
|
}
|
|
|
|
function foo(func: () => boolean){ }
|
|
foo(() => {
|
|
this.age = 100;
|
|
return true;
|
|
});
|