# New Ticket Created by   
# Please include the string:  [perl #125228]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125228 >


This should likely report the missing definition of C<LIB>, but instead 
it throws 'Cannot invoke this object...' with no file or line number 
attached. And, while I imagine REPR: Null is referring to the fact that 
native() isn't being passed an object, it's still a bit unclear.

Sample source:

--cut here--
use v6;
use NativeCall;
sub rl_unbind_key( Int ) returns Int is native( LIB ) { * }
--cut here--

Error that I get:

--cut here--
perl6-readline$ perl6 ./bug.t
===SORRY!===
Cannot invoke this object (REPR: Null, cs = 0)
--cut here--

Reply via email to