mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Rust&C++: Fix Return value of complex expression
We were using the has_value of the previous expression of a sequence of expression, instead of using the last expression type to know if there is a value. Fixes #4070
This commit is contained in:
parent
d45165e984
commit
63d199a728
2 changed files with 21 additions and 1 deletions
|
@ -158,7 +158,7 @@ fn process_codeblock(
|
|||
value,
|
||||
stmts,
|
||||
has_return_value,
|
||||
has_value,
|
||||
!matches!(ty, Type::Void | Type::Invalid),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue