Closed lalalic closed 2 years ago
char[] tar = new char[len];
will be transpiled as following, which has ts error "Function expression, which lacks return-type annotation, implicitly has an 'any[]' return type"
let tar: string[] = (s => { let a=[]; while(s-->0) a.push(null); return a; })(len);
new Object[len]
has the same problem
Please turn off TypeScript’s strict mode. JSweet doesn’t support it.
thanks
will be transpiled as following, which has ts error "Function expression, which lacks return-type annotation, implicitly has an 'any[]' return type"
has the same problem