mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
no need for InferredGenericType!
This commit is contained in:
parent
ab665ba7b6
commit
cc4105e274
4 changed files with 2 additions and 9 deletions
|
@ -128,7 +128,7 @@ impl BuiltinFunction {
|
|||
},
|
||||
BuiltinFunction::ArrayLength => Type::Function {
|
||||
return_type: Box::new(Type::Int32),
|
||||
args: vec![Type::Array(Box::new(Type::InferredGenericType))],
|
||||
args: vec![Type::Model],
|
||||
},
|
||||
BuiltinFunction::Rgb => Type::Function {
|
||||
return_type: Box::new(Type::Color),
|
||||
|
@ -991,7 +991,6 @@ impl Expression {
|
|||
pub fn default_value_for_type(ty: &Type) -> Expression {
|
||||
match ty {
|
||||
Type::Invalid
|
||||
| Type::InferredGenericType
|
||||
| Type::Component(_)
|
||||
| Type::Builtin(_)
|
||||
| Type::Native(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue