flintrocks / flint

The Flint Programming Language for Smart Contracts
MIT License
2 stars 0 forks source link

Fix semantic checks for external calls #138

Open Aurel300 opened 5 years ago

Aurel300 commented 5 years ago

Some tests / semantic analyser diagnostics were disabled in the #127 PR:

The only time a value is actually not used is when it is a .expression() statement e.g. in a Block. Care should be taken with casting – even though casting technically should check if the value is in a given range, it should probably not be treated as "using" the value, especially given that at the moment we can only cast to Int, which does not check range (Int === int256 is the largest integer type).