Skip to content

Effekt program ran with effekt executes IO operations in incorrect order #1087

@timsueberkrueb

Description

@timsueberkrueb

Consider the following program:

import stringbuffer

def prompt_for_user_name(): String = {
  println("What's your name?")
  readln()
}

def main() = {
  val username = prompt_for_user_name()
  println(s"Hello ${username}")
}

Output:

> ./out/foo
What's your name?
xxx
Hello xxx
> effekt foo.effekt
xxx
What's your name?
Hello xxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions