You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this is on a windows intel machine, I am codding in rust. When I write this bit of code it throws this error
------------------------------------------------------------------------------------------------------------------------------------------------------
init => {
if Intermediar-elev.new==true{
Intermediar-elev.new=false;
}
if Intermediar-elev.new==false{
Intermediar-elev.state==false;
}
}
------------------------------------------------------------------------------------------------------------------------------------------------------
error[E0605]: non-primitive cast: `()` as `bool`
--> C:\Users\sami2\Desktop\da\da\biblioteca\target\debug\build\biblioteca-6a35604a473275b1\out\appwindow.rs:8087:22
|
8087 | / ({
8088 | | }
8089 | | ) as _ }
| |__________________________^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
------------------------------------------------------------------------------------------------------------------------------------------------------
I use the bools elsewhere and its fine and after deleting is inside the init it compiles ok. I am up to provide more information if asked.
Sorry for my bad english.
Thanks.
The text was updated successfully, but these errors were encountered:
Thanks for reporting a bug.
Compilation error in the generated code is a bug in Slint because it should have either been a compilation error in the Slint code, or be accepted.
In this case, this bug was already fixed in commit 028d075 (issue #4942)
But thanks anyway for reporting.
Hi, this is on a windows intel machine, I am codding in rust. When I write this bit of code it throws this error
I use the bools elsewhere and its fine and after deleting is inside the init it compiles ok. I am up to provide more information if asked.
Sorry for my bad english.
Thanks.
The text was updated successfully, but these errors were encountered: