Skip to content

run prints value with bogus type #328

Open
@byorgey

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

No one assigned

    Labels

    BugThe observed behaviour is incorrect or unexpected.C-ProjectA larger project, more suitable for experienced contributors.G-REPLAn issue having to do with the REPL.L-Type systemIssues related to the Swarm language type system.S-Nice to haveThe bug fix or feature would be nice but doesn't currently have much negative impact.T-UIInvolves the user interface.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions