-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
350454b
commit 1e720c1
Showing
12 changed files
with
113 additions
and
23 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 was deleted.
Oops, something went wrong.
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,9 @@ | ||
f() -> | ||
match foo(): | ||
| 1: | ||
"ok" | ||
| 2: | ||
bar() | ||
match baz(): | ||
| 3: | ||
qux() |
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,16 @@ | ||
function f() { | ||
const it = foo(); | ||
|
||
if (it === 1) { | ||
return "ok"; | ||
} else if (it === 2) { | ||
bar(); | ||
{ | ||
const it = baz(); | ||
|
||
if (it === 3) { | ||
return qux(); | ||
} | ||
} | ||
} | ||
} |
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,6 @@ | ||
it = "good" | ||
f() -> | ||
match "bad": | ||
| true: true | ||
|
||
it |
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 @@ | ||
it = "good" | ||
f() -> | ||
match "bad": | ||
| true: true | ||
|
||
it | ||
|
||
assert.equal("good", f()) |
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,12 @@ | ||
const it = "good"; | ||
|
||
function f() { | ||
{ | ||
const it = "bad"; | ||
|
||
if (it === true) { | ||
true; | ||
} | ||
} | ||
return it; | ||
} |
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,6 @@ | ||
f() -> | ||
match foo(): | ||
| 1: "ok" | ||
|
||
match bar(): | ||
| 2: "oops" |
15 changes: 15 additions & 0 deletions
15
test/fixtures/match/sibling-no-as-implicit-returns/expected.js
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,15 @@ | ||
function f() { | ||
const it = foo(); | ||
|
||
if (it === 1) { | ||
"ok"; | ||
} | ||
|
||
{ | ||
const it = bar(); | ||
|
||
if (it === 2) { | ||
return "oops"; | ||
} | ||
} | ||
} |
File renamed without changes.
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,13 @@ | ||
const it = foo(); | ||
|
||
if (it === 1) { | ||
"ok"; | ||
} | ||
|
||
{ | ||
const it = bar(); | ||
|
||
if (it === 2) { | ||
"oops"; | ||
} | ||
} |