New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't introspect constants in signatures #1407
Comments
From lewis@wall.org[20:20] <quietfanatic> rakudo: say :(3).perl I can't find a '3' anywhere inside that expression, or in any of the methods |
From @moritz21:48 <@moritz_> rakudo: say :(3).params[0].constraints Isn't that pretty? :-) |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/introspection.t commit 4fe2085a03c1029dc2361275a6d50fd4d8cbd8d3 [t/spec] Test for RT #70720, :(3) has the 3 available to introspection Inline Patchdiff --git a/t/spec/S06-signature/introspection.t b/t/spec/S06-signature/introspection.t
index dc4e9bb..bb2adf3 100644
--- a/t/spec/S06-signature/introspection.t
+++ b/t/spec/S06-signature/introspection.t
@@ -88,6 +88,12 @@ sub j(*@i) {
'smartmach against non-closure constraint (-)';
}
+# RT #70720
+{
+ is :(3).params[0].constraints, 3, ':(3) contains the 3';
+ ok :(3).params[0].type === Int, ':(3) has a parameter of type Int';
+}
+
{
sub h(::T $x, T $y) { };
my @l = &h.signature.params; |
Migrated from rt.perl.org#70720 (status was 'resolved')
Searchable as RT70720$
The text was updated successfully, but these errors were encountered: