Open
Description
Describe the bug
Calling run
on certain files causes the result of executing the file to be printed along with a unit type, regardless of the actual type of the result.
To Reproduce
In true.sw
:
true
Now start swarm and at the REPL, type run("true.sw")
This will print out
true : ()
Expected behavior
It should result in
true : bool
(or perhaps it shouldn't print anything at all?).
Metadata
Assignees
Labels
The observed behaviour is incorrect or unexpected.A larger project, more suitable for experienced contributors.An issue having to do with the REPL.Issues related to the Swarm language type system.The bug fix or feature would be nice but doesn't currently have much negative impact.Involves the user interface.