Home > Back-end >  Online for bosses
Online for bosses

Time:10-24

Could not convert from 'void' to 'Boolean'

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
  • Related