Skip to content
This repository was archived by the owner on Aug 7, 2026. It is now read-only.

Fixes compiler error - #337

Open
bhelx wants to merge 1 commit into
near:mainfrom
bhelx:fix-compiler-error
Open

Fixes compiler error#337
bhelx wants to merge 1 commit into
near:mainfrom
bhelx:fix-compiler-error

Conversation

@bhelx

@bhelx bhelx commented Sep 10, 2022

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants