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

Fixes compiler error #337

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fixes compiler error #337

wants to merge 1 commit into from

Conversation

bhelx
Copy link

@bhelx bhelx commented Sep 10, 2022

I'm getting this error using asc 0.21.3:

INFO AS210: Expression is never 'null'.
    :
 82 │ this.writeString(str!);
    │                  ~~~
    └─ in ~lib/assemblyscript-json/assembly/encoder.ts(82,24)

I believe it's because there is already a null check on the line above. This change fixed the problem for me.

INFO AS210: Expression is never 'null'.
    :
 82 │ this.writeString(str!);
    │                  ~~~
    └─ in ~lib/assemblyscript-json/assembly/encoder.ts(82,24)
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.

None yet

2 participants