Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
|
|
@ -3,9 +3,9 @@ T U1 {}
|
|||
|
||||
F baz(i)
|
||||
I i == 0
|
||||
X U0()
|
||||
X.throw U0()
|
||||
E
|
||||
X U1()
|
||||
X.throw U1()
|
||||
|
||||
F bar(i)
|
||||
baz(i)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
val .U0 = h{"msg": "U0"}
|
||||
val .U1 = h{"msg": "U1"}
|
||||
|
||||
val .baz = f(.i) throw if(.i==0: .U0; .U1)
|
||||
val .bar = f(.i) .baz(.i)
|
||||
val .baz = fn(.i) throw if(.i==0: .U0; .U1)
|
||||
val .bar = fn(.i) .baz(.i)
|
||||
|
||||
val .foo = f() {
|
||||
val .foo = impure fn() {
|
||||
for .i in [0, 1] {
|
||||
.bar(.i)
|
||||
catch {
|
||||
if _err["msg"] == .U0["msg"] {
|
||||
if _err'msg == .U0'msg {
|
||||
writeln "caught .U0 in .foo()"
|
||||
} else {
|
||||
throw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue