Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 527 forks source link

allow porting/diag.t to detect messages from XSUBs in class.c #22167

Closed tonycoz closed 3 weeks ago

tonycoz commented 3 weeks ago

and briefly document the undocumented messages it found.

Note that the "Odd number of arguments" message isn't suppressible, I do not know if that is by design:

$ ./perl -Ilib -Mfeature=class -e 'no warnings; class C { field $x:param; } C->new("x")' Odd number of arguments passed to "C" constructor at -e line 1.

Discovered when porting/diag.t didn't warn about my new message in the fix for #22159