Skip to content
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

fix: assert throwing expected 2 arguments but got 1 #2435

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

HerrCai0907
Copy link
Member

fix error like this:

class Ref {
  x: i32;
}
// infer builtin assert generic
export function inferAssert(v: Ref | null): void {
  assert(v).x;
}
  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@MaxGraey MaxGraey changed the title fix: assert thorw Expected 2 arguments but got 1 fix: assert throw expected 2 arguments but got 1 Aug 14, 2022
@MaxGraey MaxGraey changed the title fix: assert throw expected 2 arguments but got 1 fix: assert throwing expected 2 arguments but got 1 Aug 14, 2022
@MaxGraey MaxGraey requested a review from dcodeIO August 14, 2022 07:27
@MaxGraey MaxGraey merged commit cf676d3 into AssemblyScript:main Aug 15, 2022
@MaxGraey
Copy link
Member

Thanks!

@HerrCai0907 HerrCai0907 deleted the fix/assert-argument-error branch August 15, 2022 23:19
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.

2 participants