Callback arguments names is no longer experimental

ChangeLog: named callback arguments
This commit is contained in:
Olivier Goffart 2024-11-20 17:46:03 +01:00
parent 6e91b9bc91
commit c0a123b6b9
2 changed files with 14 additions and 7 deletions

View file

@ -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()