Signatures & dispatch
Binding arguments to parameters, slurpies, traits, and which multi candidate wins.
357 rules from 210 tests. 189 of those tests are confirmed on both engines: Raku++ and Rakudo 2026.11 both pass, or Raku++ gives Rakudo's answer on every probe of a family. The verdict is the test's, not each rule's. How to read a case.
main-hooksRaku++ matches Rakudo on 13 of 17 probes- 2
The
GENERATE-USAGEandRUN-MAINhooks that the program or an imported module provides are used by the auto-invokedMAIN, asARGS-TO-CAPTUREis. inferred
multi-deferRaku++ matches Rakudo on 15 of 24 probes- 2
A multi method with no matching candidate falls through to the inherited or built-in method of the same name. inferred
pointy-variable-is-a-parameterRaku++ matches Rakudo on 17 of 18 probes- 1
The lone variable of a pointy block (
if X -> $t,elsif,with,given,while,repeat,for) is a parameter whatever statement the block belongs to: it is readonly, a$one holds a list as one item, and it takes the value out of a Proxy once.
6e-gatingRaku++ passesRakudo cannot run it- 9
From 6.e a block called with no arguments has its own empty
@_; before 6.e it sees the enclosing routine's@_.sub f(*@_) { my &c = { @_.elems }; say c() }; f(7,7)says 0 under 6.e and 2 under 6.d
More from this test: Dates & times (2), Exceptions & control flow (1), Hashes & sets (3), I/O & processes (2), Lists & laziness (8), Numerics (1), Classes, roles & the MOP (2), Operators (1), Everything else (2), Regexes & grammars (2), Scoping & phasers (2), Strings & Unicode (6), divergences (1).
anon-param-and-whatevercode-bindRaku++ passesRakudo passesanon-sigil-in-named-aliasRaku++ passesRakudo passes- 1
A named parameter may alias to a bare sigil (
$,@,%,&), typed or untyped: the named argument is accepted and bound to nothing.multi method create-map(… :filter(&))accepts:filter
anton-batch-round2Raku++ passesRakudo passes- 9
The
:D/:Usmiley is enforced on an ordinary parameter bind and on a role argument.a
:Dparameter refusesInt, a:Uparameter refuses 5
More from this test: Hashes & sets (3), Native types & NativeCall (1), Classes, roles & the MOP (2), Regexes & grammars (3).
any-narrower-than-muRaku++ passesRakudo passes- 1
Anyis narrower thanMuin multi dispatch, so anAnycandidate beats aMucandidate whatever the declaration order.with
multi Dump(Mu $obj)declared beforemulti Dump(Any $obj), an ordinary argument reaches theAnycandidate - 2
A Junction and
Muitself areMubut notAny, so only aMu-typed candidate takes them.
arity-lax-callersRaku++ passesRakudo does not pass- 2
A sub with no signature — one using
@_, or a siglesssub s { ... }— accepts any number of positional arguments. - 3
A pair with a quoted key,
"a" => 1, passed in a call binds as a positional argument, not a named one. - 4
foo(|$capture)binds against the signature after flattening the capture, so it can satisfysub foo(@arr). inferred
More from this test: Compile-time errors (1), Syntax & parsing (1).
arity-with-named-arg-at-run-timeRaku++ passesRakudo passes- 1
A call that passes a named argument and the wrong number of positionals is refused when it runs, since the compile-time arity check passes over any call with a named argument.
sub g(@l) { }; g(a => 1)dies "Too few positionals passed; expected 1 argument but got 0"
More from this test: Compile-time errors (1).
array-op-args-getc-get-and-friendsRaku++ passesRakudo passes- 2
poptakes no extra argument:pop(@a, 10)and@a.pop(10)are errors. - 3
push @a, a => 52passesaas a named argument, whichpushhas no parameter for, so the Pair is not pushed. inferred
More from this test: Compile-time errors (1), Hashes & sets (1), I/O & processes (1), Numerics (1), Classes, roles & the MOP (1).
assuming-residual-defaultRaku++ passesRakudo passes- 1
The residual signature of
.assumingkeeps each remaining parameter's default as a callable.default.a remaining parameter
$b = 2has a.defaultblock that answers 2
at-param-binding-nonpositionalRaku++ passesRakudo passes- 2
Nil,Anyand a non-Positional type object do not bind to an@parameter, so a multi candidate with a required:@values!is passed over when givenvalues => Nil.new(values => Nil, …)does not pick a:@values!candidate
More from this test: Native types & NativeCall (1), Classes, roles & the MOP (1).
at-param-where-sees-seq-as-listRaku++ passesRakudo passes- 1
A Seq given to an
@parameter binds as the List it caches into (PositionalBindFailover), and the parameter'swhereclause sees that List, not the Seq, and does not consume it.:@dense-matrix! where @dense-matrix ~~ List:Daccepts@vec.map({[$_,]})
attribute-trait-argument-shapesRaku++ passesRakudo passes- 2
--> Emptyin a signature is a literal return value, not a type name.
More from this test: Classes, roles & the MOP (1).
audited-language-gaps-1Raku++ passesRakudo passes- 12
nextcalleein the only candidate is Nil. - 13
Placeholder parameters are ordered by name, the sigil ignored.
- 14
Multi candidates
(Int, Any)and(Any, Int)are ambiguous for the arguments(1, 1).
More from this test: Concurrency (1), Containers & assignment (1), Exceptions & control flow (1), Hashes & sets (1), Lists & laziness (2), Operators (1), Regexes & grammars (2), Syntax & parsing (2).
base64-sextetRaku++ passesRakudo passes- 4
In multi dispatch a candidate whose required named parameter is supplied beats a rival that differs only by a positional type.
- 5
In multi dispatch a supplied named argument must match the type constraint of the candidate's named parameter for that candidate to be chosen.
- 6
For a named parameter with aliases,
:buf(:$bin), passing either key counts as supplying it. - 7
A
|ccapture parameter absorbs unclaimed named arguments and carries them, sosamewith(|c)passes them on.
More from this test: Exceptions & control flow (1), Lists & laziness (1), Regexes & grammars (1), Scoping & phasers (1).
batch11-parse-clusterRaku++ passesRakudo passes- 8
A
Blobargument does not bind aStrparameter, so multi dispatch picks ablob8candidate for an encoded string and theStrcandidate for a string. inferred
More from this test: Operators (1), Regexes & grammars (2), Syntax & parsing (3).
battery-regressions-v5Raku++ passesRakudo passes- 3
A coercion parameter accepts a value already of its target type and refuses an argument that is neither its target nor its source type.
- 8
In
for %h.kv -> $k, @rows,@rowsis bound to the array itself, sofor @rowsiterates its elements.
More from this test: Hashes & sets (1), I/O & processes (1), Modules (2), Classes, roles & the MOP (1), Operators (1), Regexes & grammars (1).
binding-a-list-target-is-a-signatureRaku++ passesRakudo passes- 1
The target list of
my (…) := …is a signature in which@xis an ordinary Positional parameter taking exactly one argument, whereas under=it slurps the rest.my ($sql, @bind) := do given $pair { .key, .value }binds@bindto the pair's array value
bool-binds-a-native-intRaku++ passesRakudo passes- 1
Bool is an enum over Int, so a Bool binds an
Intparameter and the nativeintfamily.f(False)is0for a native-int parameter
bool-of-type-object-inside-role-methodRaku++ passesRakudo passes- 1
A multi method with no matching candidate defers to the next method of its own name, never to the method that is calling it.
role R does Iterable { multi method Bool(R:D:) { True }; method t { ?self } }; class C does R {}; C.tis False, Mu's BoolAlso held by
multi-defer.
bound-array-param-stays-a-listRaku++ passesRakudo passes- 1
A
@parameter binds a List argument as that List without itemizing its slots, so.flaton the parameter spreads nested lists.after binding
[&a,$b,@c,$d]from a List,flat @c »xx» 16yields 80 entries - 2
An Array argument binds to a
@parameter as that same Array, whose itemized slots do not spread under.flat. - 3
A
@parameter declaredis copyholds a fresh Array, whose slots do not spread under.flat. - 4
A reified Seq argument binds to a
@parameter as a List, not a Seq.
bson-simple-and-hash-agnosticRaku++ passesRakudo passes- 3
A Capture keeps its positional and named parts separate, and slipping it into a call passes each part back the way it went in. inferred
- 7
Signature.countis not made infinite by a slurpy hash*%o, isInfwith a slurpy array*@y, and counts a method's invocant.sub ($x, *%o) { }has.signature.countof1
More from this test: Containers & assignment (4), Dates & times (1), Hashes & sets (1), Modules (1), Classes, roles & the MOP (2), Operators (1), Stringification (1), Strings & Unicode (1), Types & coercion (1).
builtin-takes-junction-wholeRaku++ passesRakudo passes- 1
The built-in methods whose parameters are slurpies or Mu take a Junction whole instead of autothreading over it, while a method that takes a plain value still threads.
@b.append(1|2)appends one Junction,Set.new(1|2)is one Set and.splice(0, 1, 5|6)one splice
More from this test: Stringification (1).
callable-context-callme-rawRaku++ passesRakudo passes- 3
An
is rawparameter writes back to the caller's variable, in subs and methods, also when the method declares an explicit invocant.
More from this test: Classes, roles & the MOP (1), Syntax & parsing (1).
callables-method-rw-capture-requiredRaku++ passesRakudo passes- 1
.yadais True for a routine whose body is...or!!!, for named and anonymous subs as well as methods. - 3
A
<->block makes its parametersis rwin every position — an expression-level block andwheneveras well asfor. - 4
|$captureslips a Capture's named parts as named arguments and its positionals as positionals.min |\(1,7,3, by => {…})compares three values with:by
More from this test: Exceptions & control flow (1), Classes, roles & the MOP (2).
capture-candidate-is-least-specificRaku++ passesRakudo passes- 1
In multi dispatch a candidate that declares a position outranks one whose
|capture swallows it, and a bare|catch-all is the least specific candidate, whatever the declaration order.multi method show(|) {*}declared first does not win calls another candidate declares positions for - 2
Multi dispatch ranks a candidate with a satisfied required named parameter first, before comparing how many positions the candidates declare.
capture-no-flattenRaku++ passesRakudo passes- 1
A capture parameter
|ctakes the argument list as passed and does not flatten a single Positional argument.sub f(|c)sees one positional fromf([1,2,3])
class-invocant-typed-by-classRaku++ passesRakudo passes- 1
An explicit
::?CLASSinvocant is typed by the enclosing class in the method's signature.in class E,
method t(::?CLASS:D: $y)has the signature(E:D $:: $y, *%_)and its invocant's.typeisE
class-traits-and-module-gatesRaku++ passesRakudo cannot run it- 2
A sigilless parameter can carry a sub-signature, as in
-> \p (:key($k) is raw, …).
More from this test: Classes, roles & the MOP (2), Syntax & parsing (2).
class-type-named-parameterRaku++ passesRakudo passes- 1
::?CLASScan type a named parameter: in::?CLASS :$copythe colon opens the named parameter and is not the invocant marker.submethod TWEAK(… ::?CLASS :$copy, …)declares:$copyas a named parameter
code-accepts-and-regex-callableRaku++ passesRakudo passes- 4
A
--> Slipreturn constraint is satisfied by returning a Slip.
More from this test: Operators (1), Types & coercion (2).
codegen-sub-placeholdersRaku++ passesRakudo cannot run it- 2
A placeholder's bare name is the same variable:
$^cdeclares the block's$c, which the body may write without the twigil after its first mention, shadowing any outer$c.{ print $^c; say $c }called with 42 under an outermy $c = 100says 42
coercing-return-typeRaku++ passesRakudo passes- 1
A coercion return type
--> Map()converts the returned value instead of constraining it.method exports(--> Map())may return a List of Pairs
More from this test: Hashes & sets (1).
conformance-phase1-reprRaku++ passesRakudo passes- 4
A
Capture's.elemscounts positionals only, and its.keys/.values/.pairslist the positionals and then the nameds.
More from this test: Hashes & sets (1), Lists & laziness (2), Stringification (2), Types & coercion (1).
conformance-phase2-introspectionRaku++ passesRakudo passes- 1
A
Parameterreports itsis copyandis rawtraits, and an anonymous parameter's.nameis not its bare sigil. inferred - 2
.typeof an unconstrained parameter isAnyon a routine butMuon a:( … )signature literal.
More from this test: Containers & assignment (1), Exceptions & control flow (2), Hashes & sets (1), I/O & processes (1), Classes, roles & the MOP (1), Scoping & phasers (1), Types & coercion (1).
constant-type-alias-in-signatureRaku++ passesRakudo passes- 1
A
constantbound to a type names that type in a signature: a parameter's.type, the signature's rendering and--> Aliasanswer the type the constant is bound to.with
constant Alias = Foo::Bar; sub g(Alias $x), the parameter's.type === Foo::Baris True - 2
A
constantbound to a parameterized type keeps its parameter in binding and in multi dispatch.constant AI = Array[Int]; sub f(AI $x)does not take a plain Array
container-lists-and-pair-cellsRaku++ passesRakudo passes- 2
Slipping a Capture into a call with
|$cpasses the values its elements hold, so a callee that stringifies an argument gets the value's string. inferred
More from this test: Containers & assignment (4), Hashes & sets (1).
copy-array-param-refuses-scalarRaku++ passesRakudo passes- 1
An
@parameter markedis copy, positional or named, refuses a non-Positional argument just as a plain@parameter does.sub c(@a is copy) { }; c(1)dies "Type check failed in binding to parameter '@a'; expected Positional but got Int (1)" - 2
A Positional argument bound to an
@parameter markedis copyis copied into a fresh Array.a push to
@ainsidesub c(@a is copy)does not reach the caller's ArrayAlso held by
exe-sigil-param-binding.
core-qualified-parameter-typeRaku++ passesRakudo passes- 1
A
CORE::Int $xparameter is constrained to the core Int, and its.signatureand.typename itInt. - 2
CORE::DateTimenames the core class even where a module's own class shadowsDateTime, so methods can be called on it and aCORE::DateTime $selfcandidate takes a core DateTime.CORE::DateTime.new(…)worksAlso held by
core-class-extended-in-place.
core-trait-candidates-test-assertionRaku++ passesRakudo passes- 1
The core
&trait_mod:<is>candidates include one taking(Routine, :$test-assertion!).
cro-install-engine-fixesRaku++ passesRakudo passes- 7
An attributive parameter
$!xor:$!xis type-checked as an assignment to the attribute, subsets included, and:@!akeeps the attribute's element type. - 10
Parameter.constraint_listis available, and a parameter written as a double-quoted literal reports that literal as its constraint. - 11
A subset-typed parameter introspects as its nominal type plus the subset as a constraint.
- 13
The exception for a
wherebinding failure carries.parameter. - 14
A flattening slurpy parameter keeps the itemized elements of an Array argument whole.
- 15
An invocant typed by a short class name means the class of that name where the method was written, even though another class took that short name first.
- 18
A program with an explicit
proto MAIN(|)still falls back to the usage message when noMAINcandidate takes the arguments.
More from this test: Concurrency (4), I/O & processes (1), Lists & laziness (1), Classes, roles & the MOP (1), Regexes & grammars (1), Strings & Unicode (1), Syntax & parsing (2).
cro-live-clusterRaku++ passesRakudo passes- 8
Parameterintrospection offers.constraints(holding the literal of a literal parameter),.typeas a type object, and.named_names.
More from this test: Containers & assignment (1), Modules (1), Classes, roles & the MOP (2), Scoping & phasers (1), Syntax & parsing (2).
currying-and-signature-renderRaku++ passesRakudo does not pass- 3
.assumingwith a named argument leaves that parameter in the primed routine's signature, optional and defaulting to the primed value, whereas priming a positional removes it. - 4
A
*among.assuming's arguments is a hole that the call's next positional fills. - 5
A capture parameter does not consume its arguments, so two capture parameters in one signature see the same argument list.
More from this test: Stringification (2).
dbdish-native-and-list-defectsRaku++ passesRakudo passes- 10
A parenthesised pair in an argument list is a positional argument.
More from this test: Containers & assignment (2), Lists & laziness (1), Native types & NativeCall (5), Classes, roles & the MOP (3), Regexes & grammars (3), Syntax & parsing (2).
digest-bigint-and-native-clusterRaku++ passesRakudo passes- 3
Placeholder parameters used in an expression with a statement-modifier
givenbelong to the enclosing routine.sub ROL64 { ($^a +> (64 - $_) +| $a +< $_) % (1 +< 64) given $^n % 64 }; ROL64(2**63, 1)is 1 - 5
A native-int parameter truncates its argument to its width on bind.
sub trunc(uint32 $n) { $n }; trunc(2**40 + 5)is 5 - 6
In multi dispatch a
blob8 $xparameter outranks a bare@parameter for a Buf argument.with
multi K(@lanes)andmulti K(blob8 $state), abuf8argument picks theblob8candidate
More from this test: Containers & assignment (1), Operators (1).
dist-suite-quartetRaku++ passesRakudo passes- 1
A
Str:Dparameter refuses an IO::Path argument.read(Str:D)does not accept an IO::Path - 15
A
|cparameter binds a real Capture whose named parts are reachable.
More from this test: Dates & times (1), Exceptions & control flow (1), I/O & processes (1), Classes, roles & the MOP (4), Operators (1), Everything else (1), Regexes & grammars (2), Scoping & phasers (1), Stringification (1), Syntax & parsing (3), Types & coercion (2).
dot-method-call-and-formatterRaku++ passesRakudo passes- 4
|$objpasses a non-Hash object as one positional argument; only a Hash or Map slips as named arguments.takes-dt(|$dt)with a DateTime binds it to theDateTime $dparameter;takes-named(|%h)still binds nameds
More from this test: Dates & times (2), Classes, roles & the MOP (1).
eco-blockers-2026-09-14Raku++ passesRakudo passes- 9
Passing too few positional arguments is an error for a method, as it is for a sub.
More from this test: Exceptions & control flow (1), I/O & processes (2), Operators (2), Stringification (1), Syntax & parsing (2).
ecosweep-2026-09Raku++ passesRakudo passes- 7
--> CONSTANTin a signature, with a constant or literal value after the arrow, is a definite return value, not a type constraint.
More from this test: I/O & processes (2), Modules (3), Classes, roles & the MOP (1), Operators (1), Scoping & phasers (2), Types & coercion (1).
ecosweep-900-batchRaku++ passesRakudo passes- 6
is rwon a parameter takes part in multi dispatch. - 9
A flattening slurpy parameter does not flatten an Array element of its arguments.
More from this test: Containers & assignment (1), I/O & processes (1), Lists & laziness (4), Numerics (1), Operators (2), Regexes & grammars (1), Stringification (1), Syntax & parsing (1).
ecosweep-batch-fiveRaku++ passesRakudo passes- 5
The invocant marker may follow the invocant's traits.
multi method push(::?CLASS:U $_ is rw: *@values) - 9
A multi parameter may be typed with a package-relative multi-segment name inside the module that declares the type.
inside
module AliasProbe,my multi which(Argument::Boolean $)matches anArgument::Boolean - 14
A typed
@parameter's reflected.typeisPositional[T], with.ofT.for
sub f(Str :@foo),&f.signature.params[0].type.^nameisPositional[Str] - 15
Parameter.named_nameslists a named parameter's aliases innermost first, andParameter.constraintsis a Junction.for
sub f(Str :fooo(:f(:@foo))),named_namesis("foo", "f", "fooo")
More from this test: Hashes & sets (1), Native types & NativeCall (2), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (1), Scoping & phasers (2), Syntax & parsing (1), Types & coercion (2).
exe-builtin-routine-valueRaku++ passesRakudo passes- 2
A built-in routine referenced as
&nameis one Callable that knows its name and lists all its candidates.&say.nameis not empty,&say === &sayholds, and&trait_mod:<is>.candidateshas more than one candidate
exe-junction-autothreads-callRaku++ passesRakudo passes- 2
A Junction passed to a routine's untyped
$parameter autothreads the call.sub f($v) { $v.^name }; f(1|2)isany(Int, Int) - 3
A parameter typed
MuorJunction, a native-typed parameter, a slurpy, and an untyped parameter of a block take a Junction whole, without autothreading.
More from this test: divergences (1).
exe-literal-parameterRaku++ passesRakudo passes- 2
A literal parameter outside a multi candidate —
-> 'greet', $name,sub g('x', $y)— is a constraint in the routine's signature that the binder checks.with
sub g('x', $y),g('z', 1)is refused
exe-mechanical-nativeRaku++ passesRakudo passes- 4
&foo.aritydoes not count a parameter with a default as required. - 5
\(*)is a Capture holding a Whatever; the*does not curry the capture into a WhateverCode. - 6
A sub called with fewer positional arguments than its signature requires is refused rather than run with a parameter unbound.
strict($one)against the signature($a, $b)is refused
More from this test: Containers & assignment (1), Exceptions & control flow (2), Classes, roles & the MOP (1), Scoping & phasers (1).
exe-multi-nomatchRaku++ passesRakudo passes- 2
A multi call that no candidate takes throws X::Multi::NoMatch, whose message names the call with its argument types and lists the candidates' signatures.
"Cannot resolve caller m(Str:D, :k(Int)); none of these signatures matches:"
exe-pair-subsignature-loop-nativeRaku++ passesRakudo passes- 2
A sub-signature's named parameter binds from the argument's accessor of that name — a Pair's
.keyand.value, an object's attribute — and from a Hash's keys.for (b => 2,) -> (:$key, :$value) { say "$key.raku() $value.raku()" }says"b" 2
exe-readonly-parameter-writeRaku++ passesRakudo passes- 2
A plain
$pparameter of a sub, a pointy block or aforloop is read-only: every store into it (=,op=,++,.=,s///, handing it to anis rwparameter) dies.sub w($p) { $p = 5; $p }dies "Cannot assign to a readonly variable"
exe-refusals-keep-the-meaningRaku++ passesRakudo passes- 2
Between
multi f(Mu)andmulti f(Any), dispatch picks by type narrowness, so an argument that is an Any goes to theAnycandidate. inferred
exe-return-type-checksRaku++ passesRakudo cannot run it- 1
A routine's
--> Tis applied on every way out, areturnfrom an inner block included: a wrong type dies,--> Str()coerces and--> Int:Drefuses the type object, for subs, multi candidates, methods and pointy blocks.sub r(--> Int) { "x" }dies when called
exe-routine-scope-shapesRaku++ passesRakudo passes- 5
.VAR.nameof an@parameter names the caller's variable that was passed.@p.VAR.nameis the caller's@x
More from this test: Modules (1), Classes, roles & the MOP (1), Scoping & phasers (1).
exe-rw-param-write-backRaku++ passesRakudo passes- 2
A write to an
is rwparameter reaches the caller's variable for a lexical sub, a pointy block, a method, and a sub called through&name.{ sub w($p is rw) { $p = 5 }; w($x) }changes$x - 3
An assignment passed to an
is rwparameter passes its target container, so the callee's writes reach that variable.w($x = $x + 1)letswwrite$x
exe-sigil-param-bindingRaku++ passesRakudo passesexe-sub-reads-at-underscoreRaku++ passesRakudo passes- 2
A sub with no signature that reads
@_or%_has the*@_and*%_parameters they mean, as its.signaturesays.
More from this test: Lists & laziness (1).
exe-value-semanticsRaku++ passesRakudo passes- 5
A lowercase parameter type (
buf8,blob8,utf8) is checked by the binder.a blob8 does not bind to
buf8 $x
More from this test: Containers & assignment (1), Hashes & sets (2), Lists & laziness (1), Regexes & grammars (1), Types & coercion (1).
failure-is-concrete-for-smileyRaku++ passesRakudo passes- 1
A Failure is a concrete instance for a
:Dparameter: it bindsAny:Dalthough its.definedis False, and againstInt:Dit is a type mismatch rather than a concreteness error."x".Intpassed to anAny:Dparameter does not raise X::Parameter::InvalidConcreteness
for-over-listing-valueRaku++ passesRakudo passes- 2
A typed read-only
$parameter is bound to its value with no Scalar around it, while a$variable is one item toforand so is a typed parameter holding something Iterable.
More from this test: Lists & laziness (1).
for-param-type-is-keptRaku++ passesRakudo passes- 1
A
forloop's pointy-block parameter keeps its type constraint, coercion type,:D/:Usmiley andwhereclause.for @paths -> IO() $f { $f.e }coerces each element;for ("x",) -> Int $n { }is refused
for-subsig-multi-elementRaku++ passesRakudo passes- 1
A
forloop parameter with a sub-signature,-> $ (:$key, :$value), destructures every element of a multi-element list.
fresh100-parse-cluster-and-hostnameRaku++ passesRakudo passes- 3
A sigilless capture may be a method's invocant, marked by the colon after it.
method finalize(\SELF:)
More from this test: I/O & processes (1), Syntax & parsing (4).
gather-late-blockRaku++ passesRakudo passes- 1
samewithinside agatherblock redispatches the routine that wrote the gather.multi Keccak(…) { gather for samewith … { … } }
More from this test: Lists & laziness (1), Scoping & phasers (1).
getopt-long-parameter-traitsRaku++ passesRakudo passes- 1
A user trait on a parameter (
sub f(:$foo is option("=s%"))) callstrait_mod:<is>with theParameterobject, for named subs, anonymous subs and pointy blocks alike.sub f(:$foo is option("=s%"))callstrait_mod:<is>(Parameter, :option(…)) - 2
A role mixed into a
Parameterby a trait handler is still there on every later.signature.paramscall.
More from this test: Containers & assignment (1), Lists & laziness (1), Classes, roles & the MOP (2), Stringification (1), Types & coercion (1), divergences (1).
grand-review-b-parserRaku++ passesRakudo passes- 10
is requiredafter an aliased named parameter:name($n)is the built-in required trait.
More from this test: Compile-time errors (3), Lists & laziness (1), Regexes & grammars (2), Strings & Unicode (1), Syntax & parsing (5).
grand-review-c1-interpRaku++ passesRakudo passes- 6
A
--> Treturn constraint is enforced for every type, including on areturnexecuted insideCATCH. - 7
A literal parameter in a multi candidate,
multi f(0), matches only an Int 0, not the string"0"or the Num0e0. - 8
A named parameter's default expression is not evaluated while multi dispatch is choosing a candidate.
More from this test: Containers & assignment (1), Exceptions & control flow (3), I/O & processes (1), Numerics (7), Operators (4), Scoping & phasers (4), Stringification (1), Strings & Unicode (1).
http-useragent-clusterRaku++ passesRakudo passes- 3
Named arguments are position-independent in a method call: a leading adverb does not shift the positionals.
in
.subst(:g, 'x', 'y')the pattern is'x'
More from this test: Classes, roles & the MOP (1), Everything else (1), Regexes & grammars (3), Syntax & parsing (2).
implicit-topic-parameter-introspectsRaku++ passesRakudo passes- 1
A bare block's implicit
$_parameter is a full Parameter that answers every Parameter method.{ .say }.signature.params[0].named_namesis()
interp-meta-mixin-block-sig-allomorphRaku++ passesRakudo passes- 3
A bare
{ … }block has an implicit$_parameter — arity 0, count 1 — while-> {…}andsub {…}take no arguments.
More from this test: Lists & laziness (1), Classes, roles & the MOP (1), Regexes & grammars (1), Strings & Unicode (1), Types & coercion (1), divergences (1).
invocant-coercion-and-smileyRaku++ passesRakudo passes- 1
An explicit method invocant — a bare, qualified or
:D-smileyed type followed by:— is parsed as the invocant even when the first real parameter is a coercion type or a plain positional.method parse(URI:D: Str() $str, ...)andmethod ASSIGN-POS(URI::Query:D: $i, Pair $p)parse and bind
invocant-smiley-and-role-multisRaku++ passesRakudo does not pass- 3
A sigilless parameter accepts traits, as in
\key is raw. - 4
(::?CLASS:U:)and(::?CLASS:D:)are invocant markers whose smiley is kept, while(::?CLASS:U)without the colon is an anonymous positional parameter. - 5
A
proto methodwhose body is a bare{*}defines the dispatch group and is not itself a candidate. - 6
Invocant definedness drives multi-method dispatch: a
:Uinvocant matches the type object, a:Done matches instances, and a constrained invocant beats an unconstrained one.
More from this test: Modules (1), Classes, roles & the MOP (2), Syntax & parsing (1).
is-cached-answers-a-seen-callRaku++ passesRakudo passes- 1
A routine declared
is cachedanswers a call it has already seen without running its body again.pow2(10), which recurses twice per level, makes 11 calls - 2
is cachedkeys a call on the gist of its Capture, sof(1)andf("1")are different calls, and so is an Array after a push. - 3
Every closure of one
is cacheddeclaration shares one cache.
is-copy-default-from-a-slurpyRaku++ passesRakudo passes- 1
An
is copyparameter is a fresh, writable container, whatever was bound to it.Int $offset is copy = 0given its argument through*@argsand|@argsallows$offset--Also held by
is-copy-of-a-readonly-argument.
is-deeply-strict-and-anton-batchRaku++ passesRakudo passes- 6
An
@parameter withis copyin aforsignature is a fresh Array; without it the argument keeps its type.for %h.kv -> $k, @v is copy { … }sees an Array where the value is a List
More from this test: Hashes & sets (1), I/O & processes (3), Lists & laziness (1), Classes, roles & the MOP (3), Operators (3), Everything else (1), Regexes & grammars (2), Syntax & parsing (2).
issue-192-junction-invocant-and-argumentRaku++ passesRakudo passes- 1
A method call with a junction invocant and a junction argument threads over the invocant first, whatever the two junctions' kinds, and the arguments thread inside each call.
so @paths.all.starts-with('/etc/' | '/var/lib/')isTrue, an all of anys - 2
Among several junction arguments an
all/nonejunction threads before anany/one, whatever its position, for methods as for subs.
issue-207-hash-param-takes-associativeRaku++ passesRakudo passes- 1
A
%parameter takes an Associative and nothing else, whether the value comes by name, by position, from a default or fromfor/given/with … -> %h; a List of Pairs fails to bind.sub g(:%env) { … }; g(:env(LC_ALL => 'C', LANG => 'C'))dies at the call - 2
What binds to a
%parameter binds as itself: a Hash shared with the caller, a Map, a QuantHash, a Pair, or an object or type object that does Associative.
issue-211-trait-is-candidatesRaku++ passesRakudo passes- 1
A user
multi trait_mod:<is>joins the core's trait group, so&trait_mod:<is>.candidateslists the core candidates (such asis native) ahead of the user's.
More from this test: Modules (1).
issue-223-224-pdf-content-declarationsRaku++ passesRakudo passes- 1
A named sub nested in a method may take an attributive parameter, binding into that method's
self, while a sub with no method around it is refused.sub STORE($, $!text) { … }inside a method compiles
More from this test: Syntax & parsing (1).
issue34-named-coercion-and-awaitRaku++ passesRakudo passes- 1
A coercion type on a named parameter is applied to the argument and to the default, in multi candidates too.
IO:D() :$cwd = $*CWDaccepts a Str and coerces it
More from this test: Concurrency (1).
issue34-proto-body-dispatchRaku++ passesRakudo passes- 1
A
protowith a body runs around the dispatch, and the{*}inside it is where the candidate is chosen and called.proto method handle-entry(TAP::Entry $entry) { …; {*}; … }runs its bookkeeping around the chosenmulti method
iterable-object-and-named-subsigRaku++ passesRakudo passes- 3
A named parameter may carry a sub-signature after its
!/?marker.
More from this test: Containers & assignment (1), Lists & laziness (2).
js-backend-framework-clusterRaku++ passesRakudo passes- 1
*%ais the slurpy named hash: it collects only named arguments and is empty when the routine is called with no arguments. inferred
More from this test: Operators (1), Scoping & phasers (2), Strings & Unicode (1), Syntax & parsing (2), Types & coercion (1).
json-fast-clusterRaku++ passesRakudo does not pass- 11
An
is rwnative parameter given++$varas its argument writes back to the original variable.sub bump(int $p is rw) { $p = $p + 5 }; sub relay(int $pos is rw) { bump(++$pos); $pos }; my int $z = 0; relay($z)is 6 and leaves$zat 6
More from this test: Containers & assignment (1), Numerics (1), Operators (1), Strings & Unicode (1), Types & coercion (6).
keyof-capture-and-cool-subsRaku++ passesRakudo passes- 2
\(…) ~~ :(…)is True when the capture would bind to the signature. - 3
.kvon a Capture gives index/value for the positionals, then name/value for the nameds.
More from this test: Hashes & sets (1), Stringification (1), Strings & Unicode (1).
lizmat-containers-and-dispatchRaku++ passesRakudo passes- 6
A type object does not bind a native
strorintparameter, so a multi with native candidates does not take a type-object argument through them.
More from this test: Hashes & sets (1), Classes, roles & the MOP (2), Strings & Unicode (1), Syntax & parsing (1).
main-bool-named-valueRaku++ passesRakudo passes- 1
On the command line the words naming Bool's two values,
TrueandFalse, bare or qualified, arrive inMAINas the Bool itself, while everything else goes throughval().--tls=TruebindsBool :$tls;--tls=1,--tls=yesand--tls=truedo not - 2
Because a command-line
Trueis a Bool, aStrparameter ofMAINrefuses it, named or positional.Str :$arefuses--a=True;TruebindsBool $xand notStr $p
main-enum-argumentRaku++ passesRakudo passes- 1
A
MAINcommand-line argument that names an enum value visible in the program's scope arrives as that enum value; everything else goes throughval().with
enum Color <Red …>,prog RedpassesColor::Red - 2
A command-line word naming a type, an enum's own name, a class, a sub or a constant holding a non-enum value stays a string, a constant bound to an enum value converts, and a name the program has redefined keeps the program's meaning.
with
my constant True = "shadow", the argumentTruestays the string
More from this test: divergences (1).
main-named-allomorphRaku++ passesRakudo passes- 1
Every command-line argument is an allomorph, so a numeric-looking
--named=valuebinds to a numeric-typedMAINnamed parameter just as a positional does.sub MAIN(Real :$delay)accepts--delay=1
math-nintegrate-fixesRaku++ passesRakudo passes- 3
A placeholder variable inside a chained comparison is one of the block's parameters.
{0 <= $^x < 0.3 ?? 0 !! 1}takes one argument - 5
A block with placeholders checks its positional count: too few arguments die "Too few positionals" and too many "Too many positionals".
{ $^x + $^y }(1)and{ $^x }(1, 2)die - 6
@_/%_beside placeholders in a bare block get the remaining arguments, not all of them.
More from this test: Regexes & grammars (1), Syntax & parsing (1), Types & coercion (1).
metamodel-mixin-and-trait-importsRaku++ passesRakudo passes- 5
A signature type capture
::T $xbindsTto the argument's type for the body.
More from this test: Modules (1), Classes, roles & the MOP (4).
metaop-object-operands-user-infixRaku++ passesRakudo passes- 3
When a user
multi infix:<+>has no candidate for the operands, or acallsameruns past the last candidate, the built-in it falls back to numifies an object through its.Numeric.V + 3with a multi taking only(V, V)usesV's.Numeric
More from this test: Operators (1).
method-arity-and-invocant-signatureRaku++ passesRakudo passes- 1
A method declared with no parameters takes no positional argument.
A.m(1)dies "Too many positionals" - 2
A method's positional-count error counts the invocant and states a range of accepted counts as
2 or 3or1 to 3.expected 2 arguments but got 3 - 3
A method's signature leads with its invocant: the class, its smiley and its name, and
Mufor an anonymous method.(A:D $me:: *%_)
method-introspection-and-indirect-callRaku++ passesRakudo passes- 3
An indirect method call flattens a slipped capture into its arguments.
$obj.$m(|$cap)passes the capture's arguments - 4
A multi method group invoked as a callable takes its invocant as the first positional.
More from this test: Classes, roles & the MOP (2).
method-not-found-unthrownRaku++ passesRakudo passes- 2
.+on a method nothing takes dies, and so does a missing method called deeper inside a method that.?did find.
More from this test: Lists & laziness (1).
modinfo-ecosystem-clusterRaku++ passesRakudo passes- 7
A bare
%hor@aparameter constrains its argument to Associative or Positional in multi dispatch.with
multi which(%d),multi which(@p),multi which($s):which({a => 1})picks%d,which([1])picks@p,which('x')picks$s - 8
In multi dispatch a sigil-constrained
%/@parameter outranks a coercion-typed parameter such asIO() $pathfor a Hash or Array argument.Reader.read({a => 1})picksread(%data)overread(IO() $path);Reader.read('/tmp')picks the coercion candidate - 11
A declaration with named destructuring binds from a Capture, not only from a Hash.
my (:$path, :@globbers, :$origin) := \(:path('P'), :globbers([1, 2]), :origin)sets$pathtoP
More from this test: Hashes & sets (1), I/O & processes (1), Lists & laziness (1), Operators (1), Regexes & grammars (3), Scoping & phasers (2), Syntax & parsing (7), Types & coercion (1).
module-compat-clusterRaku++ passesRakudo passes- 6
A
Positional[T]type object binds an@-sigiled multi parameter. - 8
A multi candidate whose slurpy hash carries a
whereclause is rejected when the named arguments fail that clause.
More from this test: I/O & processes (1), Classes, roles & the MOP (4), Operators (1), Scoping & phasers (3).
module-fixes-batch-1Raku++ passesRakudo passes- 2
An allomorph binds to a native
strparameter and to astr @array parameter through itsStrside.
More from this test: Lists & laziness (1), Regexes & grammars (1), Syntax & parsing (1).
module-unblock-batchRaku++ passesRakudo passes- 2
A method carries an implicit
*%_, so named arguments that no explicit parameter claims land in%_.multi method new($l = "EN") { self.bless(|%_) }forwards the namedsAlso held by
ecosweep-batch-three.
More from this test: Exceptions & control flow (1), Operators (1), Types & coercion (1).
multi-callable-alias-and-smiley-rankingRaku++ passesRakudo passes- 1
In a nested named alias
:ws(:web-socket($websocket))the parameter takes:wsand:web-socketbut not:websocket; the variable's name is a key only when written:$websocket. - 2
In multi dispatch an
&blockparameter counts as typedCallable, so it is narrower thanAny:D $objfor a block argument. - 3
Multi dispatch weighs a definedness smiley only once every parameter type has tied, and an untyped
$jtiesAny $j.($j, @x)is narrower than(Any:D $j, Any $x)for a Positional type object
multi-literal-candidatesRaku++ passesRakudo passes- 1
A literal parameter (
multi h(1)) takes what conforms to the literal's type and equals it.multi h(1)takesTrueand the IntStr<1>, not1.0and not"1"
multi-method-compiled-dispatchRaku++ passesRakudo passes- 3
A multi method candidate with a required named parameter does not match a call that omits it.
multi method g(:$size!)does not take a call that passes nothing
multi-narrownessRaku++ passesRakudo passes- 1
Two multi candidates that both match are ranked by type narrowness, whichever is declared first.
multi f(Dog)wins overmulti f(Animal)for a Puppy;NumericoverCoolfor 5;ListoverPositionalfor[1];RoutineoverCodefor a sub - 2
Multi candidates on unrelated types that both match the argument, such as
PositionalandIterablefor an Array, are ambiguous. - 3
A parameter typed
Allomorphtakes an allomorph such as<5>.sub f(Allomorph $a)takes<5>
multi-narrowness-bandRaku++ passesRakudo does not pass- 1
In multi dispatch an unfilled optional positional typed by a subset narrows its candidate, while a plain-typed optional narrows nothing.
(UInt $v?)beats(Str $v?)and bare();()beats(Int $v?) - 2
Declaring a plain named parameter narrows a multi candidate even when the argument is not supplied.
(Int $x, :$opt)beats(Int $x) - 3
A multi candidate narrowed by a subset-typed optional and one narrowed by a named parameter tie, and declaration order decides.
(:$x)against(UInt $n?)goes to whichever is written first - 4
A sub-signature positional suppresses the subset narrowing of a later optional, so such candidates tie by declaration order.
((Int $a))and((Int $a), UInt $s = 1)tie
More from this test: divergences (1).
multi-slurpy-where-flattensRaku++ passesRakudo passes- 1
A
whereclause on a slurpy parameter of a multi candidate sees the list the binder builds for that slurpy kind, so on*@gsit sees the flattened arguments.multi du(*@gs where @gs.all ~~ Int:D)takesdu([1, 2])
multi-tie-sigilless-raw-copyRaku++ passesRakudo passes- 1
Two multi candidates that each win a position, or that are the same, are ambiguous whether their parameters are
$a, sigilless\a,is raworis copy.multi f(Int \a, Any \b)besidemulti f(Any \a, Int \b)dies X::Multi::Ambiguous forf(42, 42) - 2
is rwtells multi candidates apart, by whether the argument is writable.
multi-where-default-in-candidate-scopeRaku++ passesRakudo passes- 1
When multi dispatch checks an unsupplied named parameter's
whereagainst its default, the default is evaluated in the candidate's lexical scope, not the caller's.a candidate with
Bool :$color? = %defaults<color>, reading a module-levelmy %defaults, is found from outside the module
multi-where-evaluated-twiceRaku++ passesRakudo does not pass- 1
A
whereconstraint on a multi candidate is evaluated exactly once per matching call. - 2
A multi candidate's
whereon a native parameter is tested against the value as the native type holds it, and a failure falls back to another candidate instead of dying.with
multi m(uint8 $n where * == 300),m(300)falls back to theIntcandidate - 3
A multi candidate invoked without going through dispatch still has its
whereconstraint checked at bind time.
my-list-slot-coercion-typeRaku++ passesRakudo passes- 1
A slot of a
my (…)list declaration may carry a coercion type, and list assignment applies the coercion to that slot.my ($before, Int() $linenr) = $line.split(…)leaves$linenran Int
named-alias-bracket-subsigRaku++ passesRakudo passes- 1
A named parameter's alias may hold a square-bracket sub-signature, which destructures a Positional argument.
:out([$out?, :pass($out_pass) = True])
named-container-param-absent-nativeRaku++ passesRakudo passes- 1
An unpassed
:@aor:%hparameter is an empty container of its declared type.sub MAIN(Str :@mode)given no--modehasArray[Str].new()in@mode
named-param-subsignatureRaku++ passesRakudo passes- 1
A sub-signature may be written tight against a named parameter with no space before the
(, while a(tight against an&-sigilled parameter is the callable's own signature.&cb(Int)is the callable's signature and not a destructure
named-placeholdersRaku++ passesRakudo cannot run it- 1
A named placeholder
$:nameis a required named parameter that comes after the positional ones and counts toward neither the arity nor the count.{ $:k ~ $^a ~ $^z }has signature:($a, $z, :$k!)and arity 2 - 2
A block's positional placeholders are listed sorted and its named placeholders in the order they first appear.
{ $:c ~ $:a ~ $:b }is:(:$c!, :$a!, :$b!) - 3
A block with a named placeholder dies "Required named parameter 'x' not passed" when it is missing, and still refuses a surplus positional.
(1..4).map({ $^a + $^b + $:x })dies "Required named parameter 'x' not passed"
named-positional-param-refuses-type-objectRaku++ passesRakudo passes- 1
A named
@or%parameter refuses, at dispatch, a type object that is not Positional or Associative, so a multi falls through to another candidate;ArrayandHashtype objects still bind.:to(Str)passes overmulti method inflate(Str $value, :@to!)toinflate(Any $value, Any :$to)
named-rw-param-writes-backRaku++ passesRakudo passesnamed-scalar-param-itemizesRaku++ passesRakudo passes- 1
A named
$parameter, and a$parameter's default, hold the Array or Hash they bind as one item, so list assignment,.flat,.appendand.rakusee an item.sub m(:$d) { my @y = $d; @y.elems }; m(d => [1, 2, 3])is 1 - 2
Binding an itemized hash to a
%parameter drops the item container, as binding to@does.sub f(%h) { my @y = %h }given a$hholding a hash gets its pairs, not one element
named-subsig-pair-and-nested-coercion-smileyRaku++ passesRakudo passes- 1
A Pair given to a named parameter with a sub-signature binds as its Capture, one named and no positional, so it does not match a sub-signature that wants a positional.
is json-rpc(:async)does not selectmulti trait_mod:<is>(Method:D \m, :$json-rpc! (Str:D $name, *%params))
More from this test: Types & coercion (1).
named-where-sees-its-siblingsRaku++ passesRakudo passes- 1
A
whereon a named parameter can read the candidate's other parameters, in multi dispatch as well.multi method get(UInt:D() :$line!, UInt:D() :$col! where * <= $line)
native-array-elementsRaku++ passesRakudo passes- 1
An element of a native array handed to a routine, and the topic
.map,.grepand.firstgive a block, is the native it holds, and.grep's answer keeps the natives.f(@a[$i])of amy int @atakes a multi'sintcandidate - 4
A plain (non-multi) sub's native parameter takes a boxed value by coercing it.
More from this test: Containers & assignment (1).
native-multi-dispatchRaku++ passesRakudo passes- 1
In multi dispatch a native parameter takes a native argument of its own family — signed (
int,int8…), unsigned (uint,uint8…) ornum— and never one of another family.a
my uintis noint, amy intnouint - 2
In multi dispatch a native argument takes its family's native candidate over every boxed one, whatever
where, smiley or narrower type the boxed one has. - 3
In multi dispatch a boxed value takes any boxed candidate over a native one, and a lone native candidate refuses it.
a lone
multi z(int $x)is X::Multi::NoMatch for a boxed 3Also held by
native-array-elements. - 4
Two native multi candidates of one family are equally narrow, so the call is ambiguous.
int8besideintmakes a native int's call ambiguous - 5
A boxed parameter takes a native argument as its boxed value — a named one, a slurpy's elements and a placeholder too — and a native parameter holds it native.
native-param-is-nativeRaku++ passesRakudo passes- 1
An
intornumparameter holds a native however the caller's value arrived, so arithmetic on it takes the native candidate: an int wraps at 64 bits, and a num result converts into a native int.sub f(int $x) { $x * 2 }; f(2**62)wraps and does not print 2**63;sub f(num $x) { my int $i = $x * 2e0 }is accepted - 2
A
num32parameter holds its value at single precision, not every bit of a double.
native-param-refuses-kindRaku++ passesRakudo passes- 1
A native parameter refuses a value it cannot hold — a Str, an object, a list, a type object, a Num or a Rat into
int— with an X::AdHoc saying it cannot unbox the value, not X::TypeCheck::Binding::Parameter; the wording follows the kind of native (integer, unsigned integer, number, string) and the value's representation. - 2
A Junction does not autothread into a native parameter. inferred
- 3
An allomorph or an enum value binds to a native parameter as its number or string, not as itself.
More from this test: Containers & assignment (1).
needle-compile-clusterRaku++ passesRakudo passes- 2
Multi-candidate narrowness is judged per parameter: a candidate is preferred only when it is no wider on any parameter and narrower on some, and two candidates that each win a different parameter are settled by declaration order. inferred
with
multi h("not", Any:D $x, %o)declared beforemulti h(Str:D $t, Str:D $x, %o),h("not", "a", %())picks the first; with the order flipped it picks theStr:Done - 4
A parameter typed by a
constantthat holds a type, with or without a definedness smiley, binds as that type in multi dispatch. inferredmy constant PlainS = Str; multi k(PlainS:D $x) { "alias" }; multi k(Any:D $x) { "any" }; k("a")is"alias"
More from this test: Exceptions & control flow (1), Classes, roles & the MOP (1), Everything else (1), Stringification (2).
nested-named-alias-and-reverse-commaRaku++ passesRakudo passes- 1
A typed named parameter accepts nested aliases:
Bool :h(:help($))binds an anonymous scalar from either:hor:help.
More from this test: Operators (1).
nextcallee-in-methodRaku++ passesRakudo passes- 1
The callable
nextcalleehands out inside a method is the next method, to be called with the invocant first.my &n = nextcallee; n(self, $x)
nominal-type-checksRaku++ passesRakudo passes- 2
A List or a Seq does not bind an
Array $pparameter, and a Seq does not bind aList $pparameter. - 3
A Seq binds a
PositionalBindFailoverorSequenceparameter. - 5
A
Cool $pparameter takes a Hash, a Map and theMY::pseudo-package.
More from this test: Types & coercion (3).
nqp-json-fast-supportRaku++ passesRakudo passes- 2
A literal return constraint
--> True,--> Falseor--> Nilmakes the routine return that literal; a non-empty body still runs for its side effects.
More from this test: Numerics (1).
only-ellipsis-bracketed-infixRaku++ passesRakudo passes- 1
onlyis a routine declarator meaning the routine has exactly one candidate, and an anonymousonlyis an error.only task(…) {…}declarestask
More from this test: Hashes & sets (2), Operators (2), Syntax & parsing (1).
optional-subset-param-defaultRaku++ passesRakudo passes- 1
An optional parameter typed by a subset and not passed holds the subset's nominal type object, which the subset has to accept.
sub f(CN :$x)with CNof Str where /^\w+$/refuses the implicit Str whenxis not passed
More from this test: Types & coercion (1).
our-multi-under-protoRaku++ passesRakudo passes- 1
our multicandidates are legal under anour-scopedproto; without one,our multiraisesX::Declaration::Scope::Multi.
pair-subscript-nativeRaku++ passesRakudo passes- 2
A parenthesized Pair in an argument list,
f($x, (a => 1)), is passed positionally, as the quoted-keyf('a' => 1)is, not as a named argument.
More from this test: Containers & assignment (1), Hashes & sets (1).
param-readonlyRaku++ passesRakudo passes- 1
A plain scalar parameter is readonly; only
is copy,is rwandis rawallow writing to it.sub replace($s) { $s ~~ s:g/01/10/ while $s ~~ /01/; $s }dies with "Cannot assign to a readonly variable" - 2
.=on a readonly parameter is refused, and so is a write to anis rawparameter bound to a value with no container.
param-trait-unparenthesised-argRaku++ passesRakudo passes- 1
A trait takes an argument glued to its name as
is name<…>,is name[…],is name{…}oris name(…)on every declarator, parameters included.sub MAIN(Bool :$v is option<!>)parsesAlso held by
trait-arguments. - 2
The auto-invoked
MAINcalls anARGS-TO-CAPTUREthat the program or an imported module provides.with Getopt::Long's hook,
--no-vmakes$vFalse instead of printing the usageAlso held by
main-hooks.
parameter-introspection-detailsRaku++ passesRakudo passes- 1
Signature.paramsincludes a method's invocant parameter, whose.invocantis True, while.arityand.countexclude it. - 2
Parameter.usage-namestrips the twigil as well as the sigil.the parameter
Str @*lhas usage-namel - 3
A parameter with no default answers the
Codetype object from.default.
More from this test: Regexes & grammars (1).
parameter-twigil-and-sigilRaku++ passesRakudo passesparameter-whyRaku++ passesRakudo passes- 1
A parameter's trailing
#=or leading#|declarator doc is returned by.WHYon the reflected Parameter..signature.params[N].WHYanswers the parameter's doc
params-refuse-what-sigil-refusesRaku++ passesRakudo passes- 2
A named
&cparameter takes a Callable only, as a positional one does. - 3
An
Int %hparameter binds only a hash typed so, not an untyped Hash or a Map.an untyped Hash is refused: "You have to pass an explicitly typed hash"
- 4
A
%h is copyparameter is a plain Hash whatever was passed, a Map or a Bag included. - 6
A
givenorwithblock's-> @aparameter takes a Positional only.given 5 -> @ais refused
More from this test: Compile-time errors (1), Containers & assignment (1).
parse-unicode-and-shapesRaku++ passesRakudo passes- 5
A signature literal
:( … )in parameter position is a named parameter with no name whose value destructures with that signature.such a routine has arity 0
More from this test: Modules (1), Syntax & parsing (4).
pdf-family-2026-09Raku++ passesRakudo passes- 7
A definedness smiley is glued to its type, so in
Str :U($x)!the:Uafter a space is a required named parameter and not a smiley.Str :U($x)!is a named parameter - 11
is rwtakes effect on an anonymous routine used as a term. - 25
A
whereclause on a method parameter sees the invocant, sowhere $x ~~ $!typedecides multi-method dispatch. - 27
In multi dispatch a candidate whose slurpy swallows an argument is less specific than one that declares a parameter for it, whatever the declaration order.
multi method combine(*@f)declared abovemulti method combine(@f)does not win a call passing one arrayAlso held by
slurpy-is-wider-than-a-declared-parameter. - 34
A
whereon a defaulted named parameter decides multi dispatch: a failing one loses the candidate instead of dying at the bind. - 37
A sub-signature made of named parameters,
% (:$header!, :$body!), takes part in multi dispatch. - 49
A named argument passed to
AT-POSorAT-KEYis forwarded as a named argument and is not treated as an index. inferred$ta.AT-POS(0, :check)reads index 0 - 51
|$objon a Hash-derived object slips its entries as named arguments. - 55
::?CLASSused as a parameter type is the enclosing class, not Mu.
More from this test: Containers & assignment (8), Exceptions & control flow (1), I/O & processes (1), Lists & laziness (1), Modules (1), Numerics (1), Classes, roles & the MOP (14), Operators (1), Regexes & grammars (3), Scoping & phasers (4), Syntax & parsing (11), Types & coercion (3).
plus-slurpy-keeps-array-containersRaku++ passesRakudo passes- 1
A lone Array bound through a
+slurpy keeps its elements' containers, while a lone List binds as it is.-> +l { l }([1, (2, 3)])is(1, $(2, 3))
pointy-block-for-modifierRaku++ passesRakudo passes- 2
A
<->oris rwparameter of a pointy block in front of aformodifier writes through to the element it is bound to.<-> $x { $x++ } for @aincrements the elements of@a - 3
A pointy block with an empty signature in front of a
formodifier fails to bind, because each element is one positional too many. inferred-> { … } for 1..2does not bind - 4
Binding a
<->oris rwloop parameter to a value that has no container dies with X::Parameter::RW.for 1..3 <-> $x { }dies with X::Parameter::RW
More from this test: Hashes & sets (1), Syntax & parsing (1).
primed-code-arity-countRaku++ passesRakudo passes- 1
A routine produced by
.assumingreports the.arityand.countof its remaining parameters, agreeing with.signature.arityand.signature.count.
proto-multi-as-termRaku++ passesRakudo passes- 2
&proto.add_dispatchee($candidate)adds a multi candidate to a proto.&proto.add_dispatchee: my multi sub MAIN(:$version!) { … }
More from this test: Syntax & parsing (1).
proto-term-joins-later-multisRaku++ passesRakudo passesquanthash-roles-bindRaku++ passesRakudo passes- 1
A Bag, Set or Mix binds a parameter typed
Baggy,SettyorMixy, as it smartmatches those roles.multi sub mode(Baggy $x)can be called with a Bag
rak-chain-install-gapsRaku++ passesRakudo passes- 2
Multi dispatch weighs a definiteness smiley only between two parameters of the same type, so for a list a bare
@x(Positional) outranksCool:D $x.paragraphs($string.lines)picksparagraphs(@source)overparagraphs(Cool:D $string)
More from this test: Concurrency (1), Hashes & sets (1), Classes, roles & the MOP (1), Types & coercion (2).
rakudo-t-language-gaps-1Raku++ passesRakudo passes- 3
A
*&codeparameter binds one Callable and is not slurpy.
More from this test: Compile-time errors (1), Containers & assignment (1), Lists & laziness (1), Classes, roles & the MOP (2), Operators (1), Everything else (1), Regexes & grammars (2), Scoping & phasers (2), Stringification (2), Strings & Unicode (1), Syntax & parsing (1).
rakudo-t-language-gaps-2Raku++ passesRakudo passes- 7
A bare block has a signature and answers
.cando, and&?BLOCKin awithblock is that block. inferred
More from this test: Compile-time errors (1), Exceptions & control flow (2), Hashes & sets (1), Lists & laziness (2), Operators (2), Regexes & grammars (4), Scoping & phasers (1), Syntax & parsing (1).
rakudo-t-language-gaps-3Raku++ passesRakudo passes- 13
A
forwhose block is-> *@xtakes one value per iteration.
More from this test: Compile-time errors (2), Containers & assignment (1), Lists & laziness (2), Modules (1), Classes, roles & the MOP (1), Operators (2), Regexes & grammars (1), Scoping & phasers (1), Stringification (1), Syntax & parsing (1).
rakudo-t-language-gaps-5Raku++ passesRakudo passes- 1
An explicit
proto's.lineis where its group was declared. - 2
An
Int() @cparameter dispatches as aPositional[Int]: it takes anArray[Int], not any Array.
More from this test: Compile-time errors (1), Concurrency (1), Classes, roles & the MOP (1), Everything else (2), Stringification (1).
rakudo-t-language-gaps-7Raku++ passesRakudo passes- 2
my (::T, $x) := (Int, 5)captures a type into T for the rest of the scope. - 7
A signature-form declaration
my ($a, @b is copy) := …honours the parameter trait.
More from this test: Regexes & grammars (2), Scoping & phasers (1), Types & coercion (2).
rakuglaze-round-4Raku++ passesRakudo passes- 12
A
protorefuses a named argument its signature has no place for.
More from this test: Exceptions & control flow (4), Hashes & sets (2), Lists & laziness (1), Classes, roles & the MOP (1), Operators (1), Scoping & phasers (1), Types & coercion (2).
regex-as-callable-param-and-loop-phasersRaku++ passesRakudo does not pass- 1
A Regex binds to a
&-sigil parameter in multi dispatch.rak(/ pattern /, :paths(…))reachesmulti sub rak(&pattern, *%n)
More from this test: Scoping & phasers (1).
roast-sweep-dispatchRaku++ passesRakudo passes- 1
Multi candidates that differ only in parameters after
;;tie, and the call throwsX::Multi::Ambiguous. inferredmulti a(;; Any $b)besidemulti a(;; Int $a):a(42)is X::Multi::Ambiguous - 2
An invocant type capture
::T:is in scope for awhereclause later in the same signature. inferred - 3
A multi candidate with a sub-signature is narrower than the same parameter type without one. inferred
multi u(@a) { 1 }besidemulti u([]) { 2 }:u([])is2Also held by
subsig-accepts-and-dispatch. - 4
A Pair argument with a quoted key is positional, so passing it to a routine that takes only a named parameter of that name dies. inferred
sub quoted(:$x = 5) { $x }; quoted("x" => 5)dies - 6
An
is rwparameter wants a Scalar container: it takes a variable and refuses an itemized array$[1, 2]or an array composer[1, 2]. inferred - 9
A
proto's signature bounds a call before any candidate is tried: an arity or type outside the proto is refused even when amulticandidate would take it. inferredproto sub pa($x) {*}; multi sub pa($a, $b) { 2 }; pa(1, 2)is X::TypeCheck::Argument - 12
callwithin a wrapper around one multi-method candidate re-feeds the remaining multi candidates and the parent method chain with the new arguments. inferred
More from this test: Containers & assignment (1), Classes, roles & the MOP (3), divergences (1).
roast-sweep-signaturesRaku++ passesRakudo does not pass- 1
A literal parameter in a Signature accepts only the same literal under
~~, while a type parameter accepts a literal of that type. inferred:("foo") ~~ :("bar")is False,:("foo") ~~ :(Str)is True,:(1) ~~ :(1.0)is False - 2
A
multiwith no explicitprotohas the generated proto signature:(;; Mu |), which accepts any capture. inferred&m1.signature.rakuis:(;; Mu |) - 6
A parameter's default expression that names the parameter reads the parameter itself, not an outer name. inferred
in
sub foo(&foo = &foo)the inner&foois undefined - 7
A shaped array parameter's dimension may name an earlier parameter, binding only an array of that shape, and an enum type can be a dimension. inferred
sub dependent($n, @a[$n]) { };(my @e[Bool]).shapeis(2,) - 8
A method's implicit
*%_shows in its signature, except in anis hiddenclass, whose methods refuse unknown named arguments. inferred
More from this test: Stringification (3).
routine-is-lexicalRaku++ passesRakudo passes- 2
samewithinside a block calls again the routine the block is written in.
More from this test: Regexes & grammars (1), Scoping & phasers (1).
routine-mixin-attribute-and-direct-dispatcherRaku++ passesRakudo passes- 2
A subclass's multi-method dispatcher obtained with
.^find_methodand called directly as$obj.&m(…)reaches the candidates its parents and roles declare.my &m = Kid.^find_method('foo'); $obj.&m(…)can land on a parent'sfoocandidate
More from this test: Classes, roles & the MOP (1).
runtime-built-signatureRaku++ passesRakudo does not pass- 1
Parameter.new(type => $t)andSignature.new(:params(…), :returns(…))build objects whose accessors read the same as those of a parsed signature. - 2
A
:( … )signature literal keeps its--> T, so.returnsanswersTrather than Mu.
More from this test: Native types & NativeCall (2).
rw-arg-assignment-not-rerunRaku++ passesRakudo passes- 1
When the argument for an
is rwparameter is an assignment,f($pos = $pos + 1), the callee's writes go to the assigned variable and the assignment is evaluated once, not again on each write.
rw-param-moveRaku++ passesRakudo passes- 2
An
is rwparameter is the caller's variable itself: the write shows in the caller, also when the same variable is passed twice and when the call returns the parameter. - 3
A write made through an
is rwparameter before the callee throws is kept in the caller's variable.
More from this test: divergences (1).
rw-through-flatteningRaku++ passesRakudo passes- 1
An
is rw,is rawor\xparameter writes through to an argument that reached it flattened —f(|@a),f(|$capture),f(|%h)— into the Array element, the Hash entry or the container a List or Capture held, for positional, named and slurpy parameters, methods and multis. - 2
A routine's
|ccapture forwarded on through wrappers still lets anis rwparameter write through to the arguments of the call that made it.
samewith-only-routineRaku++ passesRakudo passes- 1
samewithin a routine that is not a multi calls the enclosing routine again with the new arguments, also from inside a nested block.} orwith $links{$olson-id} { return %cache{$olson-id} := samewith $_ }inside an only sub re-calls that sub
scalar-param-itemizesRaku++ passesRakudo passes- 1
Binding a list to a
$parameter itemizes it, and the itemized value does not flatten into a surrounding list.sub f($x) { $x.raku }; f((1,2))is$(1, 2) - 3
An
is rawparameter binds the argument itself and does not itemize it.
More from this test: Containers & assignment (1).
seq-lol-and-callable-namedRaku++ passesRakudo passes- 4
A
&-sigil named parameter only binds a Callable.
More from this test: Containers & assignment (2), Lists & laziness (1), Operators (3).
seq-pulled-on-demandRaku++ passesRakudo passes- 4
A
+@aslurpy handed one Seq binds a List, and a sigilless+aslurpy is always a List.
More from this test: Lists & laziness (4).
shaped-param-dimension-is-its-valueRaku++ passesRakudo passes- 1
A shaped parameter's literal dimension is the numeric value of the literal, however it is spelled (hex, underscores) and however large.
sub f(@a[99999999999999999999]) {}compiles;@a[0x10]is not a dimension of 0 and@a[1_0]is not a dimension of 1
sigilless-binds-the-containerRaku++ passesRakudo passes- 4
A raw loop parameter (
-> \eor-> $e is raw) binds the element's own Scalar, so a write to it changes the array.for @a -> \e { e *= 2 }doubles the elements of@a - 5
-> \rowover an Array of Arrays receives each row as one item rather than iterating the row's elements. - 6
A typed raw or rw pointy parameter (
-> Int \e,-> Int $e is rw) writes through to the element it is bound to.
More from this test: Containers & assignment (4), Classes, roles & the MOP (1).
sigilless-param-arity-at-run-timeRaku++ passesRakudo passes- 1
A sigilless parameter
\xis one required positional to the arity check of a call made at run time — through a variable, a slip, a pointy block or a method.with
sub h(\x) {…}; my &c = &h,c()andc(1, 2)are arity errors
More from this test: Everything else (1).
sigilless-param-refuses-a-bare-valueRaku++ passesRakudo passes- 1
A sigilless parameter given a bare value names the value itself, so a write to it is refused: "Cannot modify an immutable 'Int' type object" for a type object and "Cannot modify an immutable Int (5)" for a literal.
-> \v { v = 1 }(Int)dies - 2
An
s///on a sigilless name bound to a bare value isX::AdHoc, notX::Assignment::RO.
sigilless-parameter-binds-one-argumentRaku++ passesRakudo passes- 1
A sigilless parameter (
\b) binds exactly one argument, raw.sub f(\b) { b² }called with 2 is4
signature-binding-errorsRaku++ passesRakudo passes- 1
A binding-failure exception carries the Parameter that refused, as
.parameter. - 2
A call made through a variable fails binding at run time; only a call that names the routine, with a literal argument and no default in the way, is the compile-time
X::TypeCheck::Argument. - 3
An arity failure in a call through a variable or a
|capturesays "Too few positionals passed" or "Too many positionals passed". - 4
An anonymous parameter is called
<anon>in a binding error message. - 5
A bare
+and$? = defaultare valid parameters. - 6
The
whereclause of an omitted optional parameter takes part in multi dispatch. - 7
An
@aparameter refuses a Hash argument.sub f(@a)refuses a Hash - 8
A native
intparameter takes a Bool as its Int.
signature-return-literal-typeRaku++ passesRakudo passes- 1
A signature written with a return value (
--> Nil,--> True,--> 42) returns that value's type from.returns, a signature literal:(Int --> Nil)too, and does not smartmatch a signature without it.for
sub f(Int $x --> Nil),&f.signature ~~ :(Int)is False
signature-text-names-types-as-rakuRaku++ passesRakudo passes- 2
A
--> Int:Dwritten after a parameter keeps its smiley, in the signature's text and in the return check.sub j($p --> Int:D) { Int }refuses the type object it returns
More from this test: Stringification (2).
slip-flattens-into-every-slurpyRaku++ passesRakudo passes- 1
A Slip flattens into a slurpy parameter of any kind (
*@,**@,+@) even when it is itemized in a scalar.my $s = @a.Slip; f($s)binds three elements for a three-element@a
slurpy-flattens-a-hashRaku++ passesRakudo passes- 1
A Hash or Map handed to a flattening slurpy
*@a, or to+@aas its single argument, is bound as its Pairs.sub f(*@a) {…}; f(%h)binds the two Pairs of a two-entry hash - 2
The implicit
@_is a*@_and flattens its arguments as any flattening slurpy does.f(@x)gives@_the elements of @x andf(1..3)three elements - 3
A Set or a Bag, and anything in a
$container, stays whole in a flattening slurpy.
slurpy-of-values-is-immutableRaku++ passesRakudo passes- 1
A
*@lslurpy bound from plain values only (literals, operator or call results) holds them without containers, so writing an element dies; with one variable or list among the arguments every element sits in a fresh container.
splice-rotor-rettype-and-placeholdersRaku++ passesRakudo passes- 3
A
--> Treturn constraint is kept on a pointy block and on an anonymoussubormethod, not only on a named sub.
More from this test: Hashes & sets (1), Lists & laziness (1), Strings & Unicode (1).
statistics-distributions-clusterRaku++ passesRakudo passes- 2
A multi method's candidate set spans the MRO: a parent class's candidate answers a call the child's candidates cannot take.
Also held by
multi-method-compiled-dispatch. - 4
An attributive alias parameter
:a(:$!attr)answers to the attribute's name without the twigil as well as to the outer key.:a(:$!shape)accepts:shape(…)and:a(…)
More from this test: Lists & laziness (1), Classes, roles & the MOP (1), Syntax & parsing (1).
sub-signature-arity-messageRaku++ passesRakudo passes- 1
A sub-signature's arity failure names the routine that binds it (
'<anon>'for a block), gives the expected counts as for any routine, then adds " in sub-signature", once for each level of nesting.sub f(($a, $b)) { }; f((1, 2, 3))says "Too many positionals passed to 'f'; expected 2 arguments but got 3 in sub-signature" - 2
A sub-signature's arity failure ends " in sub-signature or parameter @x" when the parameter holding the sub-signature has a name, and names no parameter for a bare
@.sub g(@x ($a, $b)) { }; g((1, 2, 3))says "Too many positionals passed to 'g'; expected 2 arguments but got 3 in sub-signature or parameter @x"
subset-return-undefinedRaku++ passesRakudo cannot run it- 1
An undefined value crossing a
--> subsetreturn is checked against the nominal base first and then thewhereclauses, so an Int-derived type object passes--> UIntand any refinement-free subset of it.method port(--> Port)withour subset Port of UIntmay return the undefined Port - 2
An
Anytype object fails a UInt-based subset return type nominally, and a refiningwherestill rejects a type object.
subsig-accepts-and-dispatchRaku++ passesRakudo passes- 1
Whether an argument binds a destructuring sub-signature is decided, in
Signature.ACCEPTSand in multi dispatch alike, by binding its.Captureagainst the inner parameters with their types, required nameds, slurpies and nested sub-signatures.
subsig-after-traitsRaku++ passesRakudo passessubsig-unpacks-user-captureRaku++ passesRakudo passes- 1
A destructuring sub-signature binds its argument's
.Capture, calling the method a class writes for itself.-> (:$tags, :$description) {…}reads both from the object's own.Capture
superscript-call-but-bool-redo-copy-and-friendsRaku++ passesRakudo passes- 7
.Captureon a Pair unpacks into the named arguments:keyand:value.('OH' => 'HAI').Capturebinds:keyand:value - 8
A named argument is not credited toward a required positional parameter, so the call dies with too few positionals.
f(|(a => 42))for a sub with a required positional$adies
More from this test: Exceptions & control flow (1), I/O & processes (1), Lists & laziness (1), Stringification (1), Syntax & parsing (1), Types & coercion (1).
tls-handshake-chain-and-identityRaku++ passesRakudo passes- 1
A routine's
returns Tmay name aconstantthat aliases a type, and the return type check resolves it.my constant DH = Pointer; sub get_dh2048() returns DH {…}returns normally
More from this test: Operators (3), Syntax & parsing (1).
todo-small-divergences-2026-10-11Raku++ passesRakudo does not pass- 8
A Seq bound to a
Positional $pparameter is a List there. - 11
In multi dispatch a narrower nominal type wins over a wider one that carries a
whereclause.
More from this test: Containers & assignment (1), Classes, roles & the MOP (2), Operators (2), Scoping & phasers (1), Strings & Unicode (1), Syntax & parsing (3), Types & coercion (4), divergences (1).
top100-refresh-2026-09-03Raku++ passesRakudo passes- 5
my :($a, $b) := (…)declares and destructures likemy ($a, $b), and a signature slot the right-hand list does not reach takes its default.my :(Int $obj-num, Int $gen-num, $r = $reader) := (12, 0)leaves$rat the default
More from this test: Containers & assignment (1), Stringification (1), Syntax & parsing (1), Types & coercion (1).
tries-with-frequenciesRaku++ passesRakudo passes- 2
A
&xparameter accepts a Callable type object such asWhateverCode.
More from this test: Hashes & sets (1), Lists & laziness (2), Classes, roles & the MOP (1), Operators (2).
type-capture-after-constraintRaku++ passesRakudo passes- 1
Int ::T $xboth constrains the parameter to the written type and captures the argument's type asT, for an argument, a default and a named parameter alike.f("s")is refused forsub f(Int ::T $x)
type-capture-constrainsRaku++ passesRakudo passes- 1
A type captured with
::Tconstrains later parameters typedT, and bindsTinside the body.sub f(::T, T $a)called asf(Int, "x")throws X::TypeCheck::Binding::Parameter
type-capture-ignores-a-leaked-classRaku++ passesRakudo passes- 1
A bare
::T $xconstrains nothing: T names whatever type arrived, even when a type called T is declared somewhere else.multi method new(::T $value)takes 42
type-capture-smiley-is-constraintRaku++ passesRakudo does not pass- 1
::T:Uin a signature is an ordinary type constraint with a definedness smiley, not a type capture, so it captures nothing and an outerTstays visible in the body.in
sub load-yaml(Str $input, ::Grammar:U :$schema = …),Grammarin the body is still the outerGrammar
type-capture-smiley-undeclared-nameRaku++ passesRakudo cannot run it- 1
A
::T:U $xparameter is accepted when no type T is declared anywhere, in a sub, a method, a role or a pointy block, positional or named.sub load-yaml(Str $input, ::GrammarType:U :$schema = …)compiles with no GrammarType declared - 2
The smiley form
::T:Ucaptures nothing: T used as a later parameter's type is still invalid, and T in the body is still undeclared.
More from this test: divergences (1).
typed-for-counted-rangeRaku++ passesRakudo passes- 2
The parameter of
for ^$n -> int $ior-> Int $iis read-only, and each iteration is its own binding for closures,redo, phasers anddo for. - 4
A typed
forparameter is type-checked against each element when the loop is over anything but an integer Range.
More from this test: Native types & NativeCall (1).
typed-param-refuses-other-type-objectsRaku++ passesRakudo passes- 1
A type object is an undefined value of its own type, so it binds a typed parameter only where that type conforms, for positional and named parameters, pointy blocks and methods.
sub g(Str $x) {}; g(Any)andg(Int)die - 2
An enum-typed parameter refuses a value that is not of the enum.
f(5)intoColor $cdies - 3
An
Array[Int] $aparameter refuses a plain[1, 2].
More from this test: Types & coercion (1).
typed-positional-param-element-and-itemRaku++ passesRakudo passes- 1
The
.typeof a typed@parameter names the element type as resolved in its class, so a parameterIn:D @fin a method of classKhasPositional[K::In]and smartmatches against it work. - 2
An Array held in a Scalar (
@a[0], or slipped from@args) binds to an@parameter as itself: it keeps its element type, and a push through the parameter reaches the caller's element.an
Array[Int]held in@a[0]binds toInt @x
untyped-param-rejects-muRaku++ passesRakudo passeswhere-sees-earlier-params-ov-and-cursorRaku++ passesRakudo passes- 1
A
whereconstraint sees the earlier parameters, in multi dispatch as in a plain sub.multi f($l, $n where * > $l)compares the two arguments
More from this test: Numerics (1), Regexes & grammars (2).
while-destructure-and-candoRaku++ passesRakudo passes- 2
.cando(\capture)on a routine answers the candidates that would accept that capture; on a method the capture's first positional is the invocant.for
sub f($a, $b),&f.cando: \(1, 2)is truthy and&f.cando: \(1)is not
More from this test: Syntax & parsing (1).
wrap-builtinRaku++ passesRakudo passes- 1
.wrapon a built-in routine takes effect for later bare calls: after&dir.wrap(...),dir(...)runs the wrapper.&dir.wrap(...)thendir(...)reaches the wrapper
xml-triad-backref-indirect-coerceRaku++ passesRakudo passes- 2
An indirect type lookup
::(EXPR)can serve as a parameter's type constraint.method reparent(::(q<XML::Element>) $parent)parses and binds
More from this test: Classes, roles & the MOP (1), Regexes & grammars (1).