Skip to content

Fixes compiler error #337

New issue

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

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

Already on GitHub? # to your account

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)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants