Zilliqa / scilla

Scilla - A Smart Contract Intermediate Level Language
https://scilla-lang.org
GNU General Public License v3.0
241 stars 79 forks source link

`scilla-checker`: Use JSON output format for type checking errors #1196

Open jubnzv opened 1 year ago

jubnzv commented 1 year ago

Currently, scilla-check cannot return typechecker warnings in JSON format.

We need this feature to write unit tests for contracts that don't pass type checking. This will allow us to test type checking errors in the imperative part of Scilla.

The problem is that we exit from the checker function here before generating a JSON from warnings here.