docs: add block syntax documentation, remove outdated TODOs, and add prefix ~ operator test

This commit is contained in:
Bob Nystrom
2014-04-09 04:18:17 +00:00
parent 0d74b128a5
commit 985b1b9cf7
5 changed files with 70 additions and 9 deletions
+2
View File
@@ -14,6 +14,7 @@ class Foo {
|(other) { "infix | " + other }
! { "prefix !" }
~ { "prefix ~" }
- { "prefix -" }
}
@@ -32,4 +33,5 @@ IO.print(foo != "a") // expect: infix != a
IO.print(foo & "a") // expect: infix & a
IO.print(foo | "a") // expect: infix | a
IO.print(!foo) // expect: prefix !
IO.print(~foo) // expect: prefix ~
IO.print(-foo) // expect: prefix -