-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also includes temporary formatting support for a few syntactic forms that the postfix tests needed to use. I left TODOs in there so that we know that support for those isn't complete yet.
- Loading branch information
1 parent
93c7913
commit b3b4321
Showing
2 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
40 columns | | ||
>>> Postfix increment. | ||
value ++ ; | ||
<<< | ||
value++; | ||
>>> Postfix decrement. | ||
value -- ; | ||
<<< | ||
value--; | ||
>>> Increment and decrement as subexpressions. | ||
value ++ - other --; | ||
<<< | ||
value++ - other--; | ||
>>> Null-assert. | ||
obj ! ; | ||
<<< | ||
obj!; | ||
>>> Null-assert after method call. | ||
obj . method() ! ; | ||
<<< | ||
obj.method()!; | ||
>>> Null-assert after property. | ||
obj . prop ! ; | ||
<<< | ||
obj.prop!; | ||
>>> Null-assert inside method chain. | ||
obj ! . getter ! . method ( arg ) ! + 3; | ||
<<< | ||
obj!.getter!.method(arg)! + 3; | ||
>>> Null-assert before index and call operators. | ||
obj ! [ index ] ! ( call ) ! + 3; | ||
<<< | ||
obj![index]!(call)! + 3; |