mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Merge the Callback and Function type
There is no need for two of these
This simplify some code
Amend efdecf0a13
This commit is contained in:
parent
dff19c52da
commit
6bb0e6038f
15 changed files with 72 additions and 135 deletions
|
@ -273,7 +273,7 @@ impl Expression {
|
|||
},
|
||||
Self::CallBackCall { callback, .. } => {
|
||||
if let Type::Callback(callback) = ctx.property_ty(callback) {
|
||||
callback.return_type.as_ref().unwrap_or(&Type::Void).clone()
|
||||
callback.return_type.clone()
|
||||
} else {
|
||||
Type::Invalid
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue