Skip to content
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

WhateverCode objects don't have a signature #1317

Closed
p6rt opened this issue Sep 24, 2009 · 6 comments
Closed

WhateverCode objects don't have a signature #1317

p6rt opened this issue Sep 24, 2009 · 6 comments
Labels
LHF Low-hanging fruit, easy to resolve

Comments

@p6rt
Copy link

p6rt commented Sep 24, 2009

Migrated from rt.perl.org#69362 (status was 'resolved')

Searchable as RT69362$

@p6rt
Copy link
Author

p6rt commented Sep 24, 2009

From @moritz

22​:53 <@​moritz_> rakudo​: say (*-3).signature.perl
22​:53 <+p6eval> rakudo 0eaf62​: OUTPUT«undef␤»
22​:54 <@​moritz_> rakudo​: say (-> $x { $x - 3 }).signature.perl
22​:54 <+p6eval> rakudo 0eaf62​: OUTPUT«​:(Object $x)␤»

I'd expect those two things to have the same signature (don't care about
the name of the param, though)

@p6rt
Copy link
Author

p6rt commented Jun 18, 2010

From @jnthn

On Thu Sep 24 13​:56​:16 2009, moritz wrote​:

22​:53 <@​moritz_> rakudo​: say (*-3).signature.perl
22​:53 <+p6eval> rakudo 0eaf62​: OUTPUT«undef␤»
22​:54 <@​moritz_> rakudo​: say (-> $x { $x - 3 }).signature.perl
22​:54 <+p6eval> rakudo 0eaf62​: OUTPUT«​:(Object $x)␤»

I'd expect those two things to have the same signature (don't care about
the name of the param, though)

This is no longer the case​:

00​:37 <@​jnthn> rakudo​: say (*-3).signature.perl
00​:37 <+p6eval> rakudo 8a5f38​: OUTPUT«​:(;; Mu $x)␤»

Giving to moritz++ for spectest.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Jun 18, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 22, 2010

From @moritz

And now properly tested in S02-builtin_data_types/whatever.t.

@p6rt
Copy link
Author

p6rt commented Jun 22, 2010

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jun 22, 2010
@p6rt
Copy link
Author

p6rt commented Jun 22, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S02-builtin_data_types/whatever.t

commit 8883b7464721ad7dc4e280e5e55b99c749207183
Author​: moritz <moritz@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Tue Jun 22 20​:50​:38 2010 +0000

  [t/spec] tests for RT #​69362, signatures of WhateverCode objects
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;31412 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S02-builtin_data_types/whatever.t b/t/spec/S02-builtin_data_types/whatever.t
index b8f4c7f..53abcbf 100644
--- a/t/spec/S02-builtin_data_types/whatever.t
+++ b/t/spec/S02-builtin_data_types/whatever.t
@@ -176,6 +176,15 @@ is (0,0,0,0,0,0) >>+>> ((1,2) xx *), <1 2 1 2 1 2>, 'xx * works';
     is $x('dog'), 'GOD', 'we call both methods';
 }
 
+# RT #69362
+{
+    my $x = *.uc;
+    my $y = * + 3;
+    ok $x.signature, 'Whatever-curried method calls have a signature';
+    ok $y.signature, 'Whatever-curried operators have a signature';
+
+}
+
 done_testing;
 
 # vim: ft=perl6

@p6rt p6rt added the LHF Low-hanging fruit, easy to resolve label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LHF Low-hanging fruit, easy to resolve
Projects
None yet
Development

No branches or pull requests

1 participant