Skip to content

TYP051

TYP051 — integer used as bool

SubsystemType checking
Severityerror

An if/while condition is an integer, but conditions require bool (e.g. if 1 { … }). Write the comparison out (if x != 0). See spec/types.md §bool.

From your terminal:

Terminal window
q64 explain TYP051