RAKUDO_RAKUAST=1 install/bin/raku t/05-messages/01-errors.t
throws-like 「use v5」, X::Language::Unsupported,
'`use v5` in code does not try to load non-existent modules';
# Expected: X::Language::Unsupported
# Got: X::AdHoc
RAKUDO_RAKUAST=1 install/bin/raku t/spec/MISC/bug-coverage-6.d.t
throws-like 「
use v6.d;
sub foo { whenever Promise.in(2) { say ‘hello’ } }; react foo
」, X::Comp::WheneverOutOfScope, 'whenever not in lexical scope of react throws';
# Expected: X::Comp::WheneverOutOfScope
# Got: X::Syntax::Confused
RAKUDO_RAKUAST=1 install/bin/raku t/spec/APPENDICES/A02-some-day-maybe/misc.t
# Expected: X::Syntax::Adverb
# Got: X::Method::NotFound
# Expected: X::TypeCheck::Attribute::Default
# Got: X::TypeCheck::Assignment
# Expected: X::Parameter::Default
# Got: X::AdHoc
-
-
Save coke/2786e14b70166d055d9e87bda6e80367 to your computer and use it in GitHub Desktop.
RAKUAST Exception type mismatches
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment