Convert fiber tests to use block arguments.

This commit is contained in:
Bob Nystrom
2014-04-02 17:31:58 -07:00
parent dc366185bd
commit cc56ac4da7
13 changed files with 45 additions and 27 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
var fiber = Fiber.create(fn {
var fiber = Fiber.create {
IO.print("run")
})
}
fiber.run // expect: run
fiber.run // expect runtime error: Cannot run a finished fiber.