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
Diagnostic point to the variable definition and blame the impossibility of casting
error: Mismatched types. The type `()` cannot be created from a numeric literal.
--> {SOME_PATH}:16:17
let x = 5;
^
Expected behavior:
Imo it should show the actual root cause of the issue. That's how it looks in Rust:
error[E0308]: mismatched types
--> crates/cairo-lang-language-server/src/lang/diagnostics/mod.rs:98:9
|
96 | fn incorrect_return_type() {
| - expected `()` because of default return type
97 | let x = 5;
98 | x
| ^ expected `()`, found integer
The text was updated successfully, but these errors were encountered:
Bug Report
Cairo version:
2.8.2
Current behavior:
Diagnostic point to the variable definition and blame the impossibility of casting
Expected behavior:
Imo it should show the actual root cause of the issue. That's how it looks in Rust:
The text was updated successfully, but these errors were encountered: