Docs for operators and some other stuff.

This commit is contained in:
Bob Nystrom
2014-04-08 21:18:17 -07:00
parent 3a55acfe1a
commit b2941cbbb6
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 -