- 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
20 lines
296 B
Plaintext
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
|