Zilliqa / scilla

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

Fix `0:0` locations of warnings #1133

Closed jubnzv closed 2 years ago

jubnzv commented 2 years ago

When we report a warning in a smart-contract, we should set it location on a contract name instead of 0:0 when possible.

I've seen a few more cases when we report 0:0:

anton-trunov commented 2 years ago

Thanks! I think those three cases are not very important. Maybe we could do a better job for the Scilla version...