CodePudding user response:
Code?See error, speculation is a function returns a value as void (i.e., not return a value), were you when the bool types using the
For example,
Void fn () {}//no return value
Could you use the
If (fn ()) {}//the fn the return value of Boolean type to use