Convert all fns to block arg syntax.

This commit is contained in:
Bob Nystrom
2014-04-02 19:41:53 -07:00
parent a550d6cea4
commit d146018559
61 changed files with 124 additions and 127 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
IO.print(fn {
IO.print(new Fn {
if (false) "no" else return "ok"
}.call) // expect: ok
+1 -1
View File
@@ -1,3 +1,3 @@
IO.print(fn {
IO.print(new Fn {
if (true) return "ok"
}.call) // expect: ok
+1 -1
View File
@@ -1,3 +1,3 @@
IO.print(fn {
IO.print(new Fn {
while (true) return "ok"
}.call) // expect: ok
+1 -1
View File
@@ -1,4 +1,4 @@
var f = fn {
var f = new Fn {
return "ok"
IO.print("bad")
}
+1 -1
View File
@@ -1,4 +1,4 @@
var f = fn {
var f = new Fn {
if (true) { return }
IO.print("bad")
}
+1 -1
View File
@@ -1,4 +1,4 @@
var f = fn {
var f = new Fn {
return
IO.print("bad")
}