Add Fiber.try().
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
var fiber = new Fiber {
|
||||
IO.print("before")
|
||||
true.unknownMethod
|
||||
IO.print("after")
|
||||
}
|
||||
|
||||
IO.print(fiber.try)
|
||||
// expect: before
|
||||
// expect: Bool does not implement method 'unknownMethod'.
|
||||
IO.print("after try") // expect: after try
|
||||
Reference in New Issue
Block a user