- bash-5.0# cat bin/fetcher.raku
- #!/usr/bin/env raku
- use Main;
- bash-5.0# cat lib/Main.rakumod
- module Main {
- sub MAIN (
- DateTime(Str) :$f = ~Date.today.DateTime.earlier(:1day),
- DateTime(Str) :$t where * > $f = ~Date.today.DateTime,
- ) is export {}
- }
- bash-5.0# raku --ll-exception ./bin/fetcher.raku
- Type check failed in binding to parameter '<anon>'; expected Any but got Mu (Mu)
- at SETTING::src/core.c/Exception.pm6:62 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:throw)
- from SETTING::src/core.c/Exception.pm6:3004 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
- from gen/moar/BOOTSTRAP/v6c.nqp:330 (/rakudo/install/share/perl6/lib/Perl6/BOOTSTRAP/v6c.moarvm:)
- from gen/moar/BOOTSTRAP/v6c.nqp:3897 (/rakudo/install/share/perl6/lib/Perl6/BOOTSTRAP/v6c.moarvm:)
- from SETTING::src/core.c/Numeric.pm6:302 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:infix:«>»)
- from <unknown>:1 (/raku-fetcher/lib/.precomp/C3305170B0EC0D4F83F3B12291E36EF40BD30C29/62/62BCE9422FF2D14F69AB80A154510232FC8A9AFD:)
- from SETTING::src/core.c/WhateverCode.pm6:21 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:ACCEPTS)
- from SETTING::src/core.c/Mu.pm6:20 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:ACCEPTS)
- from SETTING::src/core.c/Main.pm6:86 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
- from SETTING::src/core.c/Main.pm6:86 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
- from SETTING::src/core.c/Main.pm6:84 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
- from SETTING::src/core.c/Main.pm6:82 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
- from SETTING::src/core.c/Main.pm6:81 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:default-args-to-capture)
- from SETTING::src/core.c/Main.pm6:362 (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:RUN-MAIN)
- from ./bin/fetcher.raku:3 (<ephemeral file>:<unit>)
- from ./bin/fetcher.raku:1 (<ephemeral file>:<unit-outer>)
- from gen/moar/stage2/NQPHLL.nqp:1946 (/rakudo/install/share/nqp/lib/NQPHLL.moarvm:eval)
- from gen/moar/stage2/NQPHLL.nqp:2151 (/rakudo/install/share/nqp/lib/NQPHLL.moarvm:evalfiles)
- from gen/moar/stage2/NQPHLL.nqp:2111 (/rakudo/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
- from gen/moar/Compiler.nqp:109 (/rakudo/install/share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
- from gen/moar/stage2/NQPHLL.nqp:2036 (/rakudo/install/share/nqp/lib/NQPHLL.moarvm:command_line)
- from gen/moar/rakudo.nqp:127 (/rakudo/install/share/perl6/runtime/perl6.moarvm:MAIN)
- from gen/moar/rakudo.nqp:1 (/rakudo/install/share/perl6/runtime/perl6.moarvm:<mainline>)
- from <unknown>:1 (/rakudo/install/share/perl6/runtime/perl6.moarvm:<main>)
- from <unknown>:1 (/rakudo/install/share/perl6/runtime/perl6.moarvm:<entry>)
- bash-5.0#
Undefined
By: Guest | Date: Mar 30 2021 17:06 | Format: None | Expires: never | Size: 2.83 KB | Hits: 565
Latest pastes
20 hours ago
20 hours ago
2 days ago
2 days ago
3 days ago