Skip to content

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