forked from lightscript/babel-plugin-lightscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
ExpressionStatement
s in IfExpression
s
commit 900dcd2 Author: William C. Johnson <wcjohnson@oigroup.net> Date: Fri Apr 7 17:18:26 2017 -0400 Fixtures for `ExpressionStatements` in `IfExpression`s commit 71060c3 Author: William C. Johnson <wcjohnson@oigroup.net> Date: Fri Apr 7 17:18:03 2017 -0400 Allow `ExpressionStatements` in `IfExpressions`
- Loading branch information
Showing
4 changed files
with
26 additions
and
6 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,3 @@ | ||
x = if true {1} else 2 | ||
|
||
y = if(false) 2 else 3 |
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,8 @@ | ||
x = if true {2} else 3 | ||
assert(x == 2, "2") | ||
|
||
y = if (false) 4 else {5} | ||
assert(y == 5, "5") | ||
|
||
z = if (true) 6 else 7 | ||
assert(z == 6, "6") |
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,3 @@ | ||
const x = true ? 1 : 2; | ||
|
||
const y = false ? 2 : 3; |