Skip to content

Enhance FunctionExpression type inference #2458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

HerrCai0907
Copy link
Member

@HerrCai0907 HerrCai0907 commented Aug 21, 2022

can infer following FunctionExpression type.

export function test(arr: i32[]): string[] {
  return arr.map((x: i32) => x.toString());
}
  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@HerrCai0907 HerrCai0907 changed the title Enhance FunctionExpression type infer Enhance FunctionExpression type inference Aug 21, 2022
Co-authored-by: Max Graey <[email protected]>
@MaxGraey MaxGraey requested a review from dcodeIO August 21, 2022 18:19
@MaxGraey MaxGraey merged commit e06557c into AssemblyScript:main Aug 31, 2022
@MaxGraey
Copy link
Member

Thanks!

@HerrCai0907 HerrCai0907 deleted the enhance-functionexpression-type-infer branch September 1, 2022 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants