1
0
forked from Mirror/wren
Files
wren/test/core/fiber/try.wren

11 lines
240 B
Plaintext
Raw Normal View History

var fiber = Fiber.new {
System.print("before")
2014-10-15 06:36:42 -07:00
true.unknownMethod
System.print("after")
2014-10-15 06:36:42 -07:00
}
System.print(fiber.try())
2014-10-15 06:36:42 -07:00
// expect: before
// expect: Bool does not implement 'unknownMethod'.
System.print("after try") // expect: after try