-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hkmc2' into hkmc2-ucs2
- Loading branch information
Showing
40 changed files
with
421 additions
and
63 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
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
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
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 |
---|---|---|
@@ -1,25 +1,60 @@ | ||
:js | ||
|
||
|
||
1 | ||
//│ = 1 | ||
|
||
() | ||
|
||
(1) | ||
//│ = 1 | ||
|
||
(1,) | ||
//│ = 1 | ||
|
||
:w | ||
(1, 2) | ||
//│ ╔══[WARNING] Pure expression in statement position | ||
//│ ║ l.16: (1, 2) | ||
//│ ╙── ^ | ||
//│ = 2 | ||
|
||
:w | ||
(1, 2,) | ||
//│ ╔══[WARNING] Pure expression in statement position | ||
//│ ║ l.23: (1, 2,) | ||
//│ ╙── ^ | ||
//│ = 2 | ||
|
||
[] | ||
//│ = [] | ||
|
||
[1] | ||
//│ = [ 1 ] | ||
|
||
[1,] | ||
//│ = [ 1 ] | ||
|
||
[1, 2] | ||
//│ = [ 1, 2 ] | ||
|
||
[1, 2,] | ||
//│ = [ 1, 2 ] | ||
|
||
|
||
null | ||
//│ = null | ||
|
||
undefined | ||
|
||
|
||
0.5 | ||
//│ = 0.5 | ||
|
||
:todo | ||
NaN | ||
//│ ╔══[ERROR] Name not found: NaN | ||
//│ ║ l.55: NaN | ||
//│ ╙── ^^^ | ||
|
||
|
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,18 @@ | ||
:js | ||
|
||
|
||
fun id(x) = x | ||
fun foo(f, g) = f(g(1)) | ||
|
||
|
||
foo(id(x => 1), id(y => 2)) | ||
//│ = 1 | ||
|
||
foo of (id of x => 1), id of y => 2 | ||
//│ = 1 | ||
|
||
:re | ||
foo(id of x => 1, id of y => 2) | ||
//│ ═══[RUNTIME ERROR] TypeError: g is not a function | ||
|
||
|
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
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
Oops, something went wrong.