mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
turn toplevel expects into inline expects
This commit is contained in:
parent
3b60acb938
commit
5df489ba23
3 changed files with 60 additions and 3 deletions
|
@ -4190,7 +4190,7 @@ pub fn build_procedures_expose_expects<'a, 'ctx, 'env>(
|
|||
let expects: Vec<_> = procedures
|
||||
.keys()
|
||||
.filter_map(|(symbol, proc_layout)| {
|
||||
if proc_layout.arguments.is_empty() && proc_layout.result == Layout::bool() {
|
||||
if proc_layout.arguments.is_empty() && proc_layout.result == Layout::UNIT {
|
||||
Some(*symbol)
|
||||
} else {
|
||||
None
|
||||
|
@ -4210,7 +4210,7 @@ pub fn build_procedures_expose_expects<'a, 'ctx, 'env>(
|
|||
|
||||
let top_level = ProcLayout {
|
||||
arguments: &[],
|
||||
result: Layout::bool(),
|
||||
result: Layout::UNIT,
|
||||
captures_niche,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue