mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
15 lines
194 B
TypeScript
15 lines
194 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;
|
|
});
|