New binding 'has_had_rc_receiver' from /libraries/RC_Channel/RP_Channel.h

I wanted to add a new binding has_had_rc_receiver method present in:
/libraries/RC_Channel/RP_Channel.h .

So I added this line
singleton RC_Channels method has_had_rc_receiver boolean right below:
singleton RC_Channels method lua_rc_channel alias get_channel in the file

The build completed successfully. But when I try to call the has_had_rc_receiver from a lua script, I get a message Lua:/APM/scripts/test.lua:7:attempt to call a nil value (method 'has_had_rc_receiver') . What is the problem here?