Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created February 21, 2020 19:26
Show Gist options
  • Save lizmat/1c4480ee3099037bc52c37c8e3177b60 to your computer and use it in GitHub Desktop.
Save lizmat/1c4480ee3099037bc52c37c8e3177b60 to your computer and use it in GitHub Desktop.
Why did it not select the :basename candidate??
Cannot resolve caller new(IO::Path:U: :basename(Str)); none of these signatures match:
(IO::Path: $path, :$CWD!, *%_ --> IO::Path)
(IO::Path: $path, IO::Spec:D :$SPEC!, *%_ --> IO::Path)
(IO::Path: :$basename!, :$dirname = "", :$volume = "", :$CWD = { ... }, IO::Spec:D :$SPEC = { ... }, *%_)
(IO::Path: Str:D $path, *%_ --> IO::Path)
(IO::Path: $path, *%_ --> IO::Path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment