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
> FUZION_DISABLE_ANSI_ESCAPES=true fz -e 'x i64 := true ? 1 : 0; say x'
command line:1:1: error 1: Incompatible types in assignment
x i64 := true ? 1 : 0; say x
^
assignment to field : 'x'
expected formal type: 'i64'
actual type found : 'i32'
assignable to : 'i32'
for value assigned : ''
To solve this, you could convert the value using + '.as_i64'.
one error.
For if this works
> FUZION_DISABLE_ANSI_ESCAPES=true fz -e 'x i64 := {if true then 1 else 0}; say x'
1
The text was updated successfully, but these errors were encountered:
For
if
this worksThe text was updated successfully, but these errors were encountered: