Skip to content

Commit

Permalink
Set up auto-generated signature correctly
Browse files Browse the repository at this point in the history
- the first array parameter was set up correctly in declarations
- but not in the signature, so introspection showed you the wrong thing
  • Loading branch information
lizmat committed Oct 3, 2017
1 parent b58bd8f commit 0dd6af7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Perl6/World.nqp
Expand Up @@ -2994,7 +2994,10 @@ class Perl6::World is HLL::World {
# signature configuration hashes
my %sig_empty := nqp::hash('parameters', []); # :()
my %sig_init := nqp::hash(
'parameters', [nqp::hash('variable_name','%init')]
'parameters', [
nqp::hash('variable_name','@auto'),
nqp::hash('variable_name','%init')
]
);

# Generate an accessor method with the given method name, package,
Expand Down

0 comments on commit 0dd6af7

Please sign in to comment.