Public paste
Undefined
By: Guest | Date: Mar 30 2021 17:06 | Format: None | Expires: never | Size: 2.83 KB | Hits: 212

  1. bash-5.0# cat bin/fetcher.raku
  2. #!/usr/bin/env raku
  3.  
  4. use Main;
  5. bash-5.0# cat lib/Main.rakumod
  6. module Main {
  7.     sub MAIN (
  8.         DateTime(Str) :$f = ~Date.today.DateTime.earlier(:1day),
  9.         DateTime(Str) :$t where * > $f = ~Date.today.DateTime,
  10.     ) is export {}
  11. }
  12. bash-5.0# raku --ll-exception ./bin/fetcher.raku
  13. Type check failed in binding to parameter '<anon>'; expected Any but got Mu (Mu)
  14.    at SETTING::src/core.c/Exception.pm6:62  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:throw)
  15.  from SETTING::src/core.c/Exception.pm6:3004  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
  16.  from gen/moar/BOOTSTRAP/v6c.nqp:330  (/rakudo/install/share/perl6/lib/Perl6/BOOTSTRAP/v6c.moarvm:)
  17.  from gen/moar/BOOTSTRAP/v6c.nqp:3897  (/rakudo/install/share/perl6/lib/Perl6/BOOTSTRAP/v6c.moarvm:)
  18.  from SETTING::src/core.c/Numeric.pm6:302  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:infix:>)
  19.  from <unknown>:1  (/raku-fetcher/lib/.precomp/C3305170B0EC0D4F83F3B12291E36EF40BD30C29/62/62BCE9422FF2D14F69AB80A154510232FC8A9AFD:)
  20.  from SETTING::src/core.c/WhateverCode.pm6:21  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:ACCEPTS)
  21.  from SETTING::src/core.c/Mu.pm6:20  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:ACCEPTS)
  22.  from SETTING::src/core.c/Main.pm6:86  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
  23.  from SETTING::src/core.c/Main.pm6:86  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
  24.  from SETTING::src/core.c/Main.pm6:84  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
  25.  from SETTING::src/core.c/Main.pm6:82  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:)
  26.  from SETTING::src/core.c/Main.pm6:81  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:default-args-to-capture)
  27.  from SETTING::src/core.c/Main.pm6:362  (/rakudo/install/share/perl6/runtime/CORE.c.setting.moarvm:RUN-MAIN)
  28.  from ./bin/fetcher.raku:3  (<ephemeral file>:<unit>)
  29.  from ./bin/fetcher.raku:1  (<ephemeral file>:<unit-outer>)
  30.  from gen/moar/stage2/NQPHLL.nqp:1946  (/rakudo/install/share/nqp/lib/NQPHLL.moarvm:eval)
  31.  from gen/moar/stage2/NQPHLL.nqp:2151  (/rakudo/install/share/nqp/lib/NQPHLL.moarvm:evalfiles)
  32.  from gen/moar/stage2/NQPHLL.nqp:2111  (/rakudo/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
  33.  from gen/moar/Compiler.nqp:109  (/rakudo/install/share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
  34.  from gen/moar/stage2/NQPHLL.nqp:2036  (/rakudo/install/share/nqp/lib/NQPHLL.moarvm:command_line)
  35.  from gen/moar/rakudo.nqp:127  (/rakudo/install/share/perl6/runtime/perl6.moarvm:MAIN)
  36.  from gen/moar/rakudo.nqp:1  (/rakudo/install/share/perl6/runtime/perl6.moarvm:<mainline>)
  37.  from <unknown>:1  (/rakudo/install/share/perl6/runtime/perl6.moarvm:<main>)
  38.  from <unknown>:1  (/rakudo/install/share/perl6/runtime/perl6.moarvm:<entry>)
  39. bash-5.0#
Latest pastes
29 days ago
2 months ago
2 months ago
3 months ago
3 months ago