-
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.
Selfhost: Adding tuple destructuring (#476)
* Selfhost: Adding tuple destructuring Add tuple destructuring to the selfhosted typechecker. * Whoops, forgot FILE_NAME * Adding more tests for tuple destructuring * Whoops, I put the test assertions in the wrong place * Compiler: Adding support for tuple destructuring
- Loading branch information
Showing
50 changed files
with
2,567 additions
and
172 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
println("hello") | ||
val tuple = ("a", (3.14, true)) | ||
println(tuple) | ||
val (a, (three, tTrue)) = tuple | ||
println("a:", a, "three:", three, "tTrue:", tTrue) |
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.