-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve compilation of lambdas so we remember the original header and…
… use that when compiling the lambda bridge method
- Loading branch information
1 parent
a29b19f
commit 6b4c963
Showing
17 changed files
with
96 additions
and
14 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
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
1 change: 1 addition & 0 deletions
1
ScriptingEngineTester/src/main/resources/zencode_tests/arrays/sort_1.zc
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,3 +1,4 @@ | ||
#disabled: Requires primitive specializations, not supported yet | ||
#dependency: stdlib | ||
#output: 1 | ||
#output: 2 | ||
|
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
22 changes: 22 additions & 0 deletions
22
ScriptingEngineTester/src/main/resources/zencode_tests/expansions/expansions_7_primitive.zc
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,22 @@ | ||
#disabled: Requires primitive specializations, not supported yet | ||
#output: 6 | ||
#output: 5 | ||
#output: 5 | ||
#output: 5 | ||
#output: 5 | ||
#output: 5 | ||
#output: 5 | ||
|
||
// One of the tests required to make StdLib (Arrays.zs) work | ||
public expand <T> T[] { | ||
public map<U>(projection as function(value as T) as U) as U[] { | ||
return new U[](length, i => projection(this[i])); | ||
} | ||
} | ||
|
||
|
||
var arr = new string[](6, "Hello"); | ||
var lengths = arr.map<usize>((element) => element.length); | ||
|
||
println(lengths.length); | ||
for length in lengths println(length); |
1 change: 1 addition & 0 deletions
1
...tingEngineTester/src/main/resources/zencode_tests/expressions/addition_signed_unsigned.zc
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
1 change: 1 addition & 0 deletions
1
ScriptingEngineTester/src/main/resources/zencode_tests/interfaces/interface_definition_7.zc
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,3 +1,4 @@ | ||
#disabled: Not supported yet | ||
#output: hello | ||
#output: hello2 | ||
|
||
|
1 change: 1 addition & 0 deletions
1
ScriptingEngineTester/src/main/resources/zencode_tests/stdlib/array_reverse_2.zc
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,3 +1,4 @@ | ||
#disabled: Requires primitive specializations, not supported yet | ||
#dependency: stdlib | ||
#output: 5 | ||
#output: 4 | ||
|
1 change: 1 addition & 0 deletions
1
ScriptingEngineTester/src/main/resources/zencode_tests/stdlib/array_reversed_2.zc
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,3 +1,4 @@ | ||
#disabled: Requires primitive specializations, not supported yet | ||
#dependency: stdlib | ||
#output: 5 | ||
#output: 4 | ||
|