Files
wren/test/fiber/resume_caller.wren
T
Bob Nystrom 5382fa05d7 feat: allow empty argument list methods in calls, definitions, and docs
- Compile empty `()` as a valid method signature distinct from no parentheses
- Update `call()`, `clear()`, `run()`, `try()`, and `yield()` to use empty argument lists
- Revise documentation across multiple files to reflect new signature semantics
2015-02-27 07:08:36 +00:00

20 lines
296 B
Plaintext

var b = new Fiber {
IO.print("fiber b")
}
var a = new Fiber {
IO.print("begin fiber a")
b.call()
IO.print("end fiber a")
}
IO.print("begin main")
a.call()
IO.print("end main")
// expect: begin main
// expect: begin fiber a
// expect: fiber b
// expect: end fiber a
// expect: end main