-
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.
Enhancements: - Allow void values in if expressions (closes #1159) - Pass type constraints through if let and nested if (closes #1160) Bugs fixed: - Signature help not available for constructor calls without new (closes #1161) - let in not accepted in return statement (closes #1162) - Lambdas cannot infer void return type (closes #1163)
- Loading branch information
Showing
10 changed files
with
85 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
] | ||
}, | ||
"ghul.compiler": { | ||
"version": "0.8.36", | ||
"version": "0.8.37", | ||
"commands": [ | ||
"ghul-compiler" | ||
] | ||
|
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
34 changes: 16 additions & 18 deletions
34
integration-tests/execution/implied-anonymous-function-argument-types-2/test.ghul
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,23 +1,21 @@ | ||
namespace Test is | ||
use Std = IO.Std; | ||
use Std = IO.Std; | ||
|
||
class Main is | ||
entry() static is | ||
|
||
|
||
Main().test(); | ||
si | ||
|
||
init() is | ||
si | ||
class Main is | ||
entry() static is | ||
|
||
|
||
test() is | ||
Std.write_line("map 123 to string: " + map_int_to_string(123, i => "'" + i + "'")); | ||
|
||
return; | ||
si | ||
Main().test(); | ||
si | ||
|
||
map_int_to_string(i: int, f: int -> string) -> string static => f(i); | ||
init() is | ||
si | ||
si | ||
|
||
|
||
test() is | ||
Std.write_line("map 123 to string: " + map_int_to_string(123, i => "'" + i + "'")); | ||
|
||
return; | ||
si | ||
|
||
map_int_to_string(i: int, f: int -> string) -> string static => f(i); | ||
si |
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