Skip to content

Commit

Permalink
Construct CUR::Distribution correctly in CU!WHICH
Browse files Browse the repository at this point in the history
Without this $compilation-unit.perl fails with
«Too few positionals passed; expected 2 arguments but got 1»
  • Loading branch information
Leont committed Nov 28, 2020
1 parent 6852f40 commit 7d0813c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/CompUnit.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CompUnit {
nqp::push_s($parts,$!auth) if $!auth;
nqp::push_s($parts,$!distribution
?? CompUnit::Repository::Distribution.new(
:dist($!distribution),
$!distribution,
:repo($!repo-id)
).Str
!! $!repo-id
Expand Down

0 comments on commit 7d0813c

Please sign in to comment.