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
{{ message }}
Repository navigation
flowc: println of an f64/f32 struct field prints with %d #992
and the program prints 3.500000, 0, 0. The Python host prints the field values. Seen while porting flow blocks to flowc (#681): a flow's state is a struct field, so println(osc.x) prints 0. Workaround: copy the field into a typed local first, or print a scaled integer.
Expected: flowc_cgen_emit_print_intrinsic resolves the field's declared type (the struct is known to the typechecker) and uses %f for f64/f32 fields, as it does for locals.
Activity
fix(stage-a): resolve name types from the declaration in scope
fix(stage-a): resolve name types from the declaration in scope