Compiler does not always complain about type mismatch for returned values from functions #653
Labels
compiler
General compiler. Should eventually become more specific as the issue is triaged
enhancement
New feature or request
Example:
We do not expect the following two functions to compile:
But the compiler does not give any compile errors.
However, the compiler does complain when
bool
is expected. E.g.Rust does not allow implicit conversions as shown in the first two functions. Sway should probably not allow that either.
The text was updated successfully, but these errors were encountered: