mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Callback arguments names is no longer experimental
ChangeLog: named callback arguments
This commit is contained in:
parent
6e91b9bc91
commit
c0a123b6b9
2 changed files with 14 additions and 7 deletions
|
@ -1160,13 +1160,7 @@ impl Element {
|
|||
|
||||
let args = sig_decl
|
||||
.CallbackDeclarationParameter()
|
||||
.map(|p| {
|
||||
if let Some(n) = p.DeclaredIdentifier() {
|
||||
if !diag.enable_experimental && !tr.expose_internal_types {
|
||||
diag.push_error("Callback named parameters are experimental and not yet supported in this version of Slint".into(), &n);
|
||||
}
|
||||
}
|
||||
type_from_node(p.Type(), diag, tr)})
|
||||
.map(|p| type_from_node(p.Type(), diag, tr))
|
||||
.collect();
|
||||
let return_type = sig_decl
|
||||
.ReturnType()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue