R
Raj
Hi,
I was getting an error in my program saying that return keyword must
not be followed by an object expression. I was confused first because I
was using return statement in a valid "if" statement.
e.g. if(expression) return false;
Later, I found that this error was due to a mistake in my method
declaration. I had put void as a return type in my method. When I
changed this to bool, everything works.
I would expect a more meaningfule error message for this type of
errors.
I'm posting this here just to let others know..
Thanks,
Raj
I was getting an error in my program saying that return keyword must
not be followed by an object expression. I was confused first because I
was using return statement in a valid "if" statement.
e.g. if(expression) return false;
Later, I found that this error was due to a mistake in my method
declaration. I had put void as a return type in my method. When I
changed this to bool, everything works.
I would expect a more meaningfule error message for this type of
errors.
I'm posting this here just to let others know..
Thanks,
Raj