Raku Cases › Signatures & dispatch

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 probes2026-11-28 · 04a1722e · #284
  1. 2

    The GENERATE-USAGE and RUN-MAIN hooks that the program or an imported module provides are used by the auto-invoked MAIN, as ARGS-TO-CAPTURE is. inferred

multi-deferRaku++ matches Rakudo on 15 of 24 probes2026-11-28 · 04a1722e · #269
  1. 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 probes2026-11-29 · 632d445c
  1. 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 it2026-08-19 · 387d2c88
  1. 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 passes2026-09-08 · 6c9d1d52 · #69
  1. 1

    Each anonymous parameter in a signature is its own variable, so a where clause on one tests that parameter's own argument.

    with :k($ where .so) :v($), f(:k(True), :v(False)) passes :k's constraint

  2. 2

    A parameter typed WhateverCode:D accepts a WhateverCode argument.

    sub f(WhateverCode:D $x) accepts *-0

anon-sigil-in-named-aliasRaku++ passesRakudo passes2026-09-11 · cc95e49f
  1. 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 passes2026-08-28 · 2421c094
  1. 9

    The :D/:U smiley is enforced on an ordinary parameter bind and on a role argument.

    a :D parameter refuses Int, a :U parameter 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 passes2026-08-05 · fbf168aa
  1. 1

    Any is narrower than Mu in multi dispatch, so an Any candidate beats a Mu candidate whatever the declaration order.

    with multi Dump(Mu $obj) declared before multi Dump(Any $obj), an ordinary argument reaches the Any candidate

  2. 2

    A Junction and Mu itself are Mu but not Any, so only a Mu-typed candidate takes them.

arity-lax-callersRaku++ passesRakudo does not pass2026-07-22 · 9227c3ee
  1. 2

    A sub with no signature — one using @_, or a sigless sub s { ... } — accepts any number of positional arguments.

  2. 3

    A pair with a quoted key, "a" => 1, passed in a call binds as a positional argument, not a named one.

  3. 4

    foo(|$capture) binds against the signature after flattening the capture, so it can satisfy sub foo(@arr). inferred

More from this test: Compile-time errors (1), Syntax & parsing (1).

arity-with-named-arg-at-run-timeRaku++ passesRakudo passes2026-11-08 · cae1cb63
  1. 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 passes2026-09-17 · 2e994990
  1. 2

    pop takes no extra argument: pop(@a, 10) and @a.pop(10) are errors.

  2. 3

    push @a, a => 52 passes a as a named argument, which push has 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 passes2026-11-13 · 29f64dcc · rakudo#4553
  1. 1

    The residual signature of .assuming keeps each remaining parameter's default as a callable .default.

    a remaining parameter $b = 2 has a .default block that answers 2

at-param-binding-nonpositionalRaku++ passesRakudo passes2026-10-06 · 7b3bb3cf
  1. 2

    Nil, Any and a non-Positional type object do not bind to an @ parameter, so a multi candidate with a required :@values! is passed over when given values => 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 passes2026-10-09 · 1dbeaa78
  1. 1

    A Seq given to an @ parameter binds as the List it caches into (PositionalBindFailover), and the parameter's where clause sees that List, not the Seq, and does not consume it.

    :@dense-matrix! where @dense-matrix ~~ List:D accepts @vec.map({[$_,]})

attribute-trait-argument-shapesRaku++ passesRakudo passes2026-09-11 · cc95e49f
  1. 2

    --> Empty in 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 passes2026-10-04 · 76f5426d
  1. 12

    nextcallee in the only candidate is Nil.

  2. 13

    Placeholder parameters are ordered by name, the sigil ignored.

  3. 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 passes2026-07-23 · 820a2168
  1. 4

    In multi dispatch a candidate whose required named parameter is supplied beats a rival that differs only by a positional type.

  2. 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.

  3. 6

    For a named parameter with aliases, :buf(:$bin), passing either key counts as supplying it.

  4. 7

    A |c capture parameter absorbs unclaimed named arguments and carries them, so samewith(|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 passes2026-07-23 · 9baeff7c
  1. 8

    A Blob argument does not bind a Str parameter, so multi dispatch picks a blob8 candidate for an encoded string and the Str candidate for a string. inferred

More from this test: Operators (1), Regexes & grammars (2), Syntax & parsing (3).

battery-regressions-v5Raku++ passesRakudo passes2026-09-29 · 78d68426
  1. 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.

  2. 8

    In for %h.kv -> $k, @rows, @rows is bound to the array itself, so for @rows iterates 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 passes2026-09-11 · cc95e49f
  1. 1

    The target list of my (…) := … is a signature in which @x is an ordinary Positional parameter taking exactly one argument, whereas under = it slurps the rest.

    my ($sql, @bind) := do given $pair { .key, .value } binds @bind to the pair's array value

bool-binds-a-native-intRaku++ passesRakudo passes2026-09-15 · 6b733a6f
  1. 1

    Bool is an enum over Int, so a Bool binds an Int parameter and the native int family.

    f(False) is 0 for a native-int parameter

bool-of-type-object-inside-role-methodRaku++ passesRakudo passes2026-11-25 · c78578b9 · #269
  1. 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.t is False, Mu's Bool

    Also held by multi-defer.

bound-array-param-stays-a-listRaku++ passesRakudo passes2026-08-29 · c748614e
  1. 1

    A @ parameter binds a List argument as that List without itemizing its slots, so .flat on the parameter spreads nested lists.

    after binding [&a,$b,@c,$d] from a List, flat @c »xx» 16 yields 80 entries

  2. 2

    An Array argument binds to a @ parameter as that same Array, whose itemized slots do not spread under .flat.

  3. 3

    A @ parameter declared is copy holds a fresh Array, whose slots do not spread under .flat.

  4. 4

    A reified Seq argument binds to a @ parameter as a List, not a Seq.

bson-simple-and-hash-agnosticRaku++ passesRakudo passes2026-08-31 · 2d04edb3
  1. 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

  2. 7

    Signature.count is not made infinite by a slurpy hash *%o, is Inf with a slurpy array *@y, and counts a method's invocant.

    sub ($x, *%o) { } has .signature.count of 1

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 passes2026-11-08 · 3f7f2856
  1. 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 passes2026-07-30 · 3f4c5290
  1. 3

    An is raw parameter 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 passes2026-07-27 · 49bc60d6
  1. 1

    .yada is True for a routine whose body is ... or !!!, for named and anonymous subs as well as methods.

  2. 3

    A <-> block makes its parameters is rw in every position — an expression-level block and whenever as well as for.

  3. 4

    |$capture slips 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 passes2026-09-15 · 6b733a6f
  1. 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. 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 passes2026-08-10 · 862f352f
  1. 1

    A capture parameter |c takes the argument list as passed and does not flatten a single Positional argument.

    sub f(|c) sees one positional from f([1,2,3])

class-invocant-typed-by-classRaku++ passesRakudo passes2026-11-09 · 793c6d61
  1. 1

    An explicit ::?CLASS invocant 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 .type is E

class-traits-and-module-gatesRaku++ passesRakudo cannot run it2026-07-30 · 215c3e29
  1. 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 passes2026-09-15 · e1b41314
  1. 1

    ::?CLASS can type a named parameter: in ::?CLASS :$copy the colon opens the named parameter and is not the invocant marker.

    submethod TWEAK(… ::?CLASS :$copy, …) declares :$copy as a named parameter

code-accepts-and-regex-callableRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 4

    A --> Slip return constraint is satisfied by returning a Slip.

More from this test: Operators (1), Types & coercion (2).

codegen-sub-placeholdersRaku++ passesRakudo cannot run it2026-09-29 · 99906fa5
  1. 2

    A placeholder's bare name is the same variable: $^c declares 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 outer my $c = 100 says 42

coercing-return-typeRaku++ passesRakudo passes2026-09-11 · cc95e49f
  1. 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 passes2026-07-25 · 970de58d
  1. 4

    A Capture's .elems counts positionals only, and its .keys/.values/.pairs list 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 passes2026-07-25 · 5103b4d7
  1. 1

    A Parameter reports its is copy and is raw traits, and an anonymous parameter's .name is not its bare sigil. inferred

  2. 2

    .type of an unconstrained parameter is Any on a routine but Mu on 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 passes2026-11-06 · 28257097 · #220
  1. 1

    A constant bound to a type names that type in a signature: a parameter's .type, the signature's rendering and --> Alias answer the type the constant is bound to.

    with constant Alias = Foo::Bar; sub g(Alias $x), the parameter's .type === Foo::Bar is True

  2. 2

    A constant bound 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 passes2026-09-27 · a77dd764
  1. 2

    Slipping a Capture into a call with |$c passes 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 passes2026-11-09 · 63b92af7
  1. 1

    An @ parameter marked is 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. 2

    A Positional argument bound to an @ parameter marked is copy is copied into a fresh Array.

    a push to @a inside sub c(@a is copy) does not reach the caller's Array

    Also held by exe-sigil-param-binding.

core-qualified-parameter-typeRaku++ passesRakudo passes2026-10-27 · 50aebf54
  1. 1

    A CORE::Int $x parameter is constrained to the core Int, and its .signature and .type name it Int.

  2. 2

    CORE::DateTime names the core class even where a module's own class shadows DateTime, so methods can be called on it and a CORE::DateTime $self candidate takes a core DateTime.

    CORE::DateTime.new(…) works

    Also held by core-class-extended-in-place.

core-trait-candidates-test-assertionRaku++ passesRakudo passes2026-10-30 · 3e15da85
  1. 1

    The core &trait_mod:<is> candidates include one taking (Routine, :$test-assertion!).

cro-install-engine-fixesRaku++ passesRakudo passes2026-10-10 · 29f5aa55
  1. 7

    An attributive parameter $!x or :$!x is type-checked as an assignment to the attribute, subsets included, and :@!a keeps the attribute's element type.

  2. 10

    Parameter.constraint_list is available, and a parameter written as a double-quoted literal reports that literal as its constraint.

  3. 11

    A subset-typed parameter introspects as its nominal type plus the subset as a constraint.

  4. 13

    The exception for a where binding failure carries .parameter.

  5. 14

    A flattening slurpy parameter keeps the itemized elements of an Array argument whole.

  6. 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.

  7. 18

    A program with an explicit proto MAIN(|) still falls back to the usage message when no MAIN candidate 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 passes2026-07-23 · 3c1b7a9e
  1. 8

    Parameter introspection offers .constraints (holding the literal of a literal parameter), .type as 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 pass2026-07-25 · 87bdca82
  1. 3

    .assuming with 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.

  2. 4

    A * among .assuming's arguments is a hole that the call's next positional fills.

  3. 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 passes2026-08-25 · 5faed01f · #28
  1. 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 passes2026-08-05 · efed6ddf
  1. 3

    Placeholder parameters used in an expression with a statement-modifier given belong to the enclosing routine.

    sub ROL64 { ($^a +> (64 - $_) +| $a +< $_) % (1 +< 64) given $^n % 64 }; ROL64(2**63, 1) is 1

  2. 5

    A native-int parameter truncates its argument to its width on bind.

    sub trunc(uint32 $n) { $n }; trunc(2**40 + 5) is 5

  3. 6

    In multi dispatch a blob8 $x parameter outranks a bare @ parameter for a Buf argument.

    with multi K(@lanes) and multi K(blob8 $state), a buf8 argument picks the blob8 candidate

More from this test: Containers & assignment (1), Operators (1).

dist-suite-quartetRaku++ passesRakudo passes2026-08-05 · 4e2c20cd
  1. 1

    A Str:D parameter refuses an IO::Path argument.

    read(Str:D) does not accept an IO::Path

  2. 15

    A |c parameter 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 passes2026-08-04 · e376ad98
  1. 4

    |$obj passes 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 the DateTime $d parameter; takes-named(|%h) still binds nameds

More from this test: Dates & times (2), Classes, roles & the MOP (1).

eco-blockers-2026-09-14Raku++ passesRakudo passes2026-09-14 · 3b6b50af
  1. 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 passes2026-09-05 · ebe0953e
  1. 7

    --> CONSTANT in 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 passes2026-09-09 · 063a5a1a
  1. 6

    is rw on a parameter takes part in multi dispatch.

  2. 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 passes2026-08-25 · 6879a71b
  1. 5

    The invocant marker may follow the invocant's traits.

    multi method push(::?CLASS:U $_ is rw: *@values)

  2. 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 an Argument::Boolean

  3. 14

    A typed @ parameter's reflected .type is Positional[T], with .of T.

    for sub f(Str :@foo), &f.signature.params[0].type.^name is Positional[Str]

  4. 15

    Parameter.named_names lists a named parameter's aliases innermost first, and Parameter.constraints is a Junction.

    for sub f(Str :fooo(:f(:@foo))), named_names is ("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 passes2026-11-11 · 6b9af8a6
  1. 2

    A built-in routine referenced as &name is one Callable that knows its name and lists all its candidates.

    &say.name is not empty, &say === &say holds, and &trait_mod:<is>.candidates has more than one candidate

exe-junction-autothreads-callRaku++ passesRakudo passes2026-11-11 · 2c8ca36b
  1. 2

    A Junction passed to a routine's untyped $ parameter autothreads the call.

    sub f($v) { $v.^name }; f(1|2) is any(Int, Int)

  2. 3

    A parameter typed Mu or Junction, 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 passes2026-11-11 · 2c8ca36b
  1. 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 passes2026-11-20 · ef8f4453
  1. 4

    &foo.arity does not count a parameter with a default as required.

  2. 5

    \(*) is a Capture holding a Whatever; the * does not curry the capture into a WhateverCode.

  3. 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 passes2026-11-11 · 2c1195fd
  1. 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 passes2026-11-11 · 2a6d5752 · #162
  1. 2

    A sub-signature's named parameter binds from the argument's accessor of that name — a Pair's .key and .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 passes2026-10-03 · 1e535cb8
  1. 2

    A plain $p parameter of a sub, a pointy block or a for loop is read-only: every store into it (=, op=, ++, .=, s///, handing it to an is rw parameter) dies.

    sub w($p) { $p = 5; $p } dies "Cannot assign to a readonly variable"

exe-refusals-keep-the-meaningRaku++ passesRakudo passes2026-11-11 · 1b0bbb67
  1. 2

    Between multi f(Mu) and multi f(Any), dispatch picks by type narrowness, so an argument that is an Any goes to the Any candidate. inferred

exe-return-type-checksRaku++ passesRakudo cannot run it2026-10-23 · e30e2827
  1. 1

    A routine's --> T is applied on every way out, a return from an inner block included: a wrong type dies, --> Str() coerces and --> Int:D refuses the type object, for subs, multi candidates, methods and pointy blocks.

    sub r(--> Int) { "x" } dies when called

exe-routine-scope-shapesRaku++ passesRakudo passes2026-11-11 · 539110b8
  1. 5

    .VAR.name of an @ parameter names the caller's variable that was passed.

    @p.VAR.name is the caller's @x

More from this test: Modules (1), Classes, roles & the MOP (1), Scoping & phasers (1).

exe-rw-param-write-backRaku++ passesRakudo passes2026-11-11 · dc671a30
  1. 2

    A write to an is rw parameter 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

  2. 3

    An assignment passed to an is rw parameter passes its target container, so the callee's writes reach that variable.

    w($x = $x + 1) lets w write $x

exe-sigil-param-bindingRaku++ passesRakudo passes2026-11-09 · ae3321f2
  1. 2

    An @ parameter refuses a non-Positional argument and a % parameter refuses a non-Associative one.

    sub u(@a) refuses an Int; sub p(%h) refuses a List of Pairs

  2. 3

    An optional @a? parameter that is not passed is an empty array.

    sub o(@a?) called with nothing has no elements

exe-sub-reads-at-underscoreRaku++ passesRakudo passes2026-11-06 · fe5426ca
  1. 2

    A sub with no signature that reads @_ or %_ has the *@_ and *%_ parameters they mean, as its .signature says.

More from this test: Lists & laziness (1).

exe-value-semanticsRaku++ passesRakudo passes2026-11-11 · 090426b0
  1. 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 passes2026-09-14 · a81e2c44
  1. 1

    A Failure is a concrete instance for a :D parameter: it binds Any:D although its .defined is False, and against Int:D it is a type mismatch rather than a concreteness error.

    "x".Int passed to an Any:D parameter does not raise X::Parameter::InvalidConcreteness

for-over-listing-valueRaku++ passesRakudo passes2026-10-28 · c50eb3b8 · #146
  1. 2

    A typed read-only $ parameter is bound to its value with no Scalar around it, while a $ variable is one item to for and so is a typed parameter holding something Iterable.

More from this test: Lists & laziness (1).

for-param-type-is-keptRaku++ passesRakudo passes2026-09-10 · 644176c1
  1. 1

    A for loop's pointy-block parameter keeps its type constraint, coercion type, :D/:U smiley and where clause.

    for @paths -> IO() $f { $f.e } coerces each element; for ("x",) -> Int $n { } is refused

for-subsig-multi-elementRaku++ passesRakudo passes2026-07-22 · 9bf2fd8b
  1. 1

    A for loop parameter with a sub-signature, -> $ (:$key, :$value), destructures every element of a multi-element list.

fresh100-parse-cluster-and-hostnameRaku++ passesRakudo passes2026-08-20 · 66345296
  1. 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 passes2026-09-27 · 0d048722
  1. 1

    samewith inside a gather block 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 passes2026-08-30 · 5e23726e
  1. 1

    A user trait on a parameter (sub f(:$foo is option("=s%"))) calls trait_mod:<is> with the Parameter object, for named subs, anonymous subs and pointy blocks alike.

    sub f(:$foo is option("=s%")) calls trait_mod:<is>(Parameter, :option(…))

  2. 2

    A role mixed into a Parameter by a trait handler is still there on every later .signature.params call.

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 passes2026-09-06 · fa74f74f
  1. 10

    is required after 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 passes2026-09-06 · fa74f74f
  1. 6

    A --> T return constraint is enforced for every type, including on a return executed inside CATCH.

  2. 7

    A literal parameter in a multi candidate, multi f(0), matches only an Int 0, not the string "0" or the Num 0e0.

  3. 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 passes2026-08-05 · 271e54e8
  1. 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 passes2026-10-31 · 3c62ef44 · #77
  1. 1

    A bare block's implicit $_ parameter is a full Parameter that answers every Parameter method.

    { .say }.signature.params[0].named_names is ()

interp-meta-mixin-block-sig-allomorphRaku++ passesRakudo passes2026-07-27 · e143336a
  1. 3

    A bare { … } block has an implicit $_ parameter — arity 0, count 1 — while -> {…} and sub {…} 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 passes2026-07-23 · 1d4c6af5
  1. 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, ...) and method ASSIGN-POS(URI::Query:D: $i, Pair $p) parse and bind

invocant-smiley-and-role-multisRaku++ passesRakudo does not pass2026-07-30 · cb88278b
  1. 3

    A sigilless parameter accepts traits, as in \key is raw.

  2. 4

    (::?CLASS:U:) and (::?CLASS:D:) are invocant markers whose smiley is kept, while (::?CLASS:U) without the colon is an anonymous positional parameter.

  3. 5

    A proto method whose body is a bare {*} defines the dispatch group and is not itself a candidate.

  4. 6

    Invocant definedness drives multi-method dispatch: a :U invocant matches the type object, a :D one 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 passes2026-11-13 · cee2cd42 · rakudo#4665 · rakudo#4666
  1. 1

    A routine declared is cached answers a call it has already seen without running its body again.

    pow2(10), which recurses twice per level, makes 11 calls

  2. 2

    is cached keys a call on the gist of its Capture, so f(1) and f("1") are different calls, and so is an Array after a push.

  3. 3

    Every closure of one is cached declaration shares one cache.

is-copy-default-from-a-slurpyRaku++ passesRakudo passes2026-11-02 · 42618157 · #218
  1. 1

    An is copy parameter is a fresh, writable container, whatever was bound to it.

    Int $offset is copy = 0 given its argument through *@args and |@args allows $offset--

    Also held by is-copy-of-a-readonly-argument.

is-deeply-strict-and-anton-batchRaku++ passesRakudo passes2026-08-28 · 2421c094
  1. 6

    An @ parameter with is copy in a for signature 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 passes2026-10-28 · f483f0e6 · #192
  1. 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/') is True, an all of anys

  2. 2

    Among several junction arguments an all/none junction threads before an any/one, whatever its position, for methods as for subs.

issue-207-hash-param-takes-associativeRaku++ passesRakudo passes2026-10-27 · 3ddcd58b · #207
  1. 1

    A % parameter takes an Associative and nothing else, whether the value comes by name, by position, from a default or from for/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. 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 passes2026-10-28 · 0e44c5a6 · #211
  1. 1

    A user multi trait_mod:<is> joins the core's trait group, so &trait_mod:<is>.candidates lists the core candidates (such as is native) ahead of the user's.

More from this test: Modules (1).

issue-223-224-pdf-content-declarationsRaku++ passesRakudo passes2026-11-07 · 1a3f36d1 · #223
  1. 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 passes2026-08-26 · 27b07a35 · #34
  1. 1

    A coercion type on a named parameter is applied to the argument and to the default, in multi candidates too.

    IO:D() :$cwd = $*CWD accepts a Str and coerces it

More from this test: Concurrency (1).

issue34-proto-body-dispatchRaku++ passesRakudo passes2026-08-26 · 27b07a35 · #34
  1. 1

    A proto with 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 chosen multi method

iterable-object-and-named-subsigRaku++ passesRakudo passes2026-08-05 · 921e38c7
  1. 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 passes2026-09-13 · 862e3888
  1. 1

    *%a is 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 pass2026-08-05 · ddc75ad1
  1. 11

    An is rw native parameter given ++$var as 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 $z at 6

More from this test: Containers & assignment (1), Numerics (1), Operators (1), Strings & Unicode (1), Types & coercion (6).

keyof-capture-and-cool-subsRaku++ passesRakudo passes2026-07-27 · 4c35f546
  1. 2

    \(…) ~~ :(…) is True when the capture would bind to the signature.

  2. 3

    .kv on 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 passes2026-09-13 · 3a8f2148
  1. 6

    A type object does not bind a native str or int parameter, 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 passes2026-09-21 · 3dd877cc · #11 · #95 · rakudo#2794
  1. 1

    On the command line the words naming Bool's two values, True and False, bare or qualified, arrive in MAIN as the Bool itself, while everything else goes through val().

    --tls=True binds Bool :$tls; --tls=1, --tls=yes and --tls=true do not

  2. 2

    Because a command-line True is a Bool, a Str parameter of MAIN refuses it, named or positional.

    Str :$a refuses --a=True; True binds Bool $x and not Str $p

main-enum-argumentRaku++ passesRakudo passes2026-09-22 · 5303e1fb · #95 · rakudo#2794
  1. 1

    A MAIN command-line argument that names an enum value visible in the program's scope arrives as that enum value; everything else goes through val().

    with enum Color <Red …>, prog Red passes Color::Red

  2. 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 argument True stays the string

More from this test: divergences (1).

main-named-allomorphRaku++ passesRakudo passes2026-07-24 · e6244a2d
  1. 1

    Every command-line argument is an allomorph, so a numeric-looking --named=value binds to a numeric-typed MAIN named parameter just as a positional does.

    sub MAIN(Real :$delay) accepts --delay=1

math-nintegrate-fixesRaku++ passesRakudo passes2026-09-29 · e7be1d17
  1. 3

    A placeholder variable inside a chained comparison is one of the block's parameters.

    {0 <= $^x < 0.3 ?? 0 !! 1} takes one argument

  2. 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

  3. 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 passes2026-09-15 · c7787832 · #77
  1. 5

    A signature type capture ::T $x binds T to the argument's type for the body.

More from this test: Modules (1), Classes, roles & the MOP (4).

metaop-object-operands-user-infixRaku++ passesRakudo passes2026-10-21 · 6b080a07
  1. 3

    When a user multi infix:<+> has no candidate for the operands, or a callsame runs past the last candidate, the built-in it falls back to numifies an object through its .Numeric.

    V + 3 with a multi taking only (V, V) uses V's .Numeric

More from this test: Operators (1).

method-arity-and-invocant-signatureRaku++ passesRakudo passes2026-09-30 · bcc92b0f
  1. 1

    A method declared with no parameters takes no positional argument.

    A.m(1) dies "Too many positionals"

  2. 2

    A method's positional-count error counts the invocant and states a range of accepted counts as 2 or 3 or 1 to 3.

    expected 2 arguments but got 3

  3. 3

    A method's signature leads with its invocant: the class, its smiley and its name, and Mu for an anonymous method.

    (A:D $me:: *%_)

method-introspection-and-indirect-callRaku++ passesRakudo passes2026-08-27 · fac8387c
  1. 3

    An indirect method call flattens a slipped capture into its arguments.

    $obj.$m(|$cap) passes the capture's arguments

  2. 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 passes2026-11-06 · 104ce4d2
  1. 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 passes2026-08-02 · 2d99420e
  1. 7

    A bare %h or @a parameter 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

  2. 8

    In multi dispatch a sigil-constrained %/@ parameter outranks a coercion-typed parameter such as IO() $path for a Hash or Array argument.

    Reader.read({a => 1}) picks read(%data) over read(IO() $path); Reader.read('/tmp') picks the coercion candidate

  3. 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 $path to P

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 passes2026-08-09 · 74aac52a
  1. 6

    A Positional[T] type object binds an @-sigiled multi parameter.

  2. 8

    A multi candidate whose slurpy hash carries a where clause 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 passes2026-07-23 · 009d2c9d
  1. 2

    An allomorph binds to a native str parameter and to a str @ array parameter through its Str side.

More from this test: Lists & laziness (1), Regexes & grammars (1), Syntax & parsing (1).

module-unblock-batchRaku++ passesRakudo passes2026-08-12 · 3d6f6abd
  1. 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 nameds

    Also 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 passes2026-10-30 · 858a037e
  1. 1

    In a nested named alias :ws(:web-socket($websocket)) the parameter takes :ws and :web-socket but not :websocket; the variable's name is a key only when written :$websocket.

  2. 2

    In multi dispatch an &block parameter counts as typed Callable, so it is narrower than Any:D $obj for a block argument.

  3. 3

    Multi dispatch weighs a definedness smiley only once every parameter type has tied, and an untyped $j ties Any $j.

    ($j, @x) is narrower than (Any:D $j, Any $x) for a Positional type object

multi-literal-candidatesRaku++ passesRakudo passes2026-10-05 · 634025c0
  1. 1

    A literal parameter (multi h(1)) takes what conforms to the literal's type and equals it.

    multi h(1) takes True and the IntStr <1>, not 1.0 and not "1"

multi-method-compiled-dispatchRaku++ passesRakudo passes2026-08-21 · 544b307b
  1. 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 passes2026-10-07 · fdaf3dc4
  1. 1

    Two multi candidates that both match are ranked by type narrowness, whichever is declared first.

    multi f(Dog) wins over multi f(Animal) for a Puppy; Numeric over Cool for 5; List over Positional for [1]; Routine over Code for a sub

  2. 2

    Multi candidates on unrelated types that both match the argument, such as Positional and Iterable for an Array, are ambiguous.

  3. 3

    A parameter typed Allomorph takes an allomorph such as <5>.

    sub f(Allomorph $a) takes <5>

multi-narrowness-bandRaku++ passesRakudo does not pass2026-08-27 · 7d85d9c2
  1. 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. 2

    Declaring a plain named parameter narrows a multi candidate even when the argument is not supplied.

    (Int $x, :$opt) beats (Int $x)

  3. 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. 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 passes2026-10-07 · 59a5f3e1 · #47
  1. 1

    A where clause on a slurpy parameter of a multi candidate sees the list the binder builds for that slurpy kind, so on *@gs it sees the flattened arguments.

    multi du(*@gs where @gs.all ~~ Int:D) takes du([1, 2])

multi-tie-sigilless-raw-copyRaku++ passesRakudo passes2026-11-13 · 401e19e8 · rakudo#1286
  1. 1

    Two multi candidates that each win a position, or that are the same, are ambiguous whether their parameters are $a, sigilless \a, is raw or is copy.

    multi f(Int \a, Any \b) beside multi f(Any \a, Int \b) dies X::Multi::Ambiguous for f(42, 42)

  2. 2

    is rw tells multi candidates apart, by whether the argument is writable.

multi-where-default-in-candidate-scopeRaku++ passesRakudo passes2026-11-13 · 6eef76fd
  1. 1

    When multi dispatch checks an unsupplied named parameter's where against 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-level my %defaults, is found from outside the module

multi-where-evaluated-twiceRaku++ passesRakudo does not pass2026-09-15 · cddf835e
  1. 1

    A where constraint on a multi candidate is evaluated exactly once per matching call.

  2. 2

    A multi candidate's where on 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 the Int candidate

  3. 3

    A multi candidate invoked without going through dispatch still has its where constraint checked at bind time.

my-list-slot-coercion-typeRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 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 $linenr an Int

named-alias-bracket-subsigRaku++ passesRakudo passes2026-09-16 · c7bea024
  1. 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 passes2026-10-29 · a1bb0e7b · #191
  1. 1

    An unpassed :@a or :%h parameter is an empty container of its declared type.

    sub MAIN(Str :@mode) given no --mode has Array[Str].new() in @mode

named-param-subsignatureRaku++ passesRakudo passes2026-09-13 · 575d0d0b
  1. 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 it2026-09-29 · b6edb837
  1. 1

    A named placeholder $:name is 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. 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. 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 passes2026-10-31 · c423e9db · #77
  1. 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; Array and Hash type objects still bind.

    :to(Str) passes over multi method inflate(Str $value, :@to!) to inflate(Any $value, Any :$to)

named-rw-param-writes-backRaku++ passesRakudo passes2026-10-04 · c1fc5c06
  1. 1

    A named is rw or is raw parameter is the caller's container, as a positional one is.

    sub f(:$x! is rw) { $x = 5 }; f(x => $v) sets $v

  2. 2

    A named is rw parameter refuses a literal argument.

named-scalar-param-itemizesRaku++ passesRakudo passes2026-10-15 · fca60078
  1. 1

    A named $ parameter, and a $ parameter's default, hold the Array or Hash they bind as one item, so list assignment, .flat, .append and .raku see an item.

    sub m(:$d) { my @y = $d; @y.elems }; m(d => [1, 2, 3]) is 1

  2. 2

    Binding an itemized hash to a % parameter drops the item container, as binding to @ does.

    sub f(%h) { my @y = %h } given a $h holding a hash gets its pairs, not one element

named-subsig-pair-and-nested-coercion-smileyRaku++ passesRakudo passes2026-10-30 · 0938078e
  1. 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 select multi 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 passes2026-09-15 · 6b733a6f
  1. 1

    A where on 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 passes2026-11-06 · a1706cb7
  1. 1

    An element of a native array handed to a routine, and the topic .map, .grep and .first give a block, is the native it holds, and .grep's answer keeps the natives.

    f(@a[$i]) of a my int @a takes a multi's int candidate

  2. 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 passes2026-11-06 · 52dc8d0c
  1. 1

    In multi dispatch a native parameter takes a native argument of its own family — signed (int, int8…), unsigned (uint, uint8…) or num — and never one of another family.

    a my uint is no int, a my int no uint

  2. 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. 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 3

    Also held by native-array-elements.

  4. 4

    Two native multi candidates of one family are equally narrow, so the call is ambiguous.

    int8 beside int makes a native int's call ambiguous

  5. 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 passes2026-10-15 · b7c47a57
  1. 1

    An int or num parameter 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. 2

    A num32 parameter holds its value at single precision, not every bit of a double.

native-param-refuses-kindRaku++ passesRakudo passes2026-10-15 · b7c47a57
  1. 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. 2

    A Junction does not autothread into a native parameter. inferred

  3. 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 passes2026-09-12 · cb851ea9
  1. 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 before multi h(Str:D $t, Str:D $x, %o), h("not", "a", %()) picks the first; with the order flipped it picks the Str:D one

  2. 4

    A parameter typed by a constant that holds a type, with or without a definedness smiley, binds as that type in multi dispatch. inferred

    my 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 passes2026-07-24 · 49b7457c
  1. 1

    A typed named parameter accepts nested aliases: Bool :h(:help($)) binds an anonymous scalar from either :h or :help.

More from this test: Operators (1).

nextcallee-in-methodRaku++ passesRakudo passes2026-10-01 · e9ab76da
  1. 1

    The callable nextcallee hands 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 passes2026-10-07 · b2678f14 · #110
  1. 2

    A List or a Seq does not bind an Array $p parameter, and a Seq does not bind a List $p parameter.

  2. 3

    A Seq binds a PositionalBindFailover or Sequence parameter.

  3. 5

    A Cool $p parameter takes a Hash, a Map and the MY:: pseudo-package.

More from this test: Types & coercion (3).

nqp-json-fast-supportRaku++ passesRakudo passes2026-07-23 · 18eddc18
  1. 2

    A literal return constraint --> True, --> False or --> Nil makes 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 passes2026-08-20 · f4d8518b
  1. 1

    only is a routine declarator meaning the routine has exactly one candidate, and an anonymous only is an error.

    only task(…) {…} declares task

More from this test: Hashes & sets (2), Operators (2), Syntax & parsing (1).

optional-subset-param-defaultRaku++ passesRakudo passes2026-11-08 · 7c69a48c
  1. 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 CN of Str where /^\w+$/ refuses the implicit Str when x is not passed

More from this test: Types & coercion (1).

our-multi-under-protoRaku++ passesRakudo passes2026-07-22 · 60a51a27
  1. 1

    our multi candidates are legal under an our-scoped proto; without one, our multi raises X::Declaration::Scope::Multi.

pair-subscript-nativeRaku++ passesRakudo passes2026-10-08 · e9e11f91
  1. 2

    A parenthesized Pair in an argument list, f($x, (a => 1)), is passed positionally, as the quoted-key f('a' => 1) is, not as a named argument.

More from this test: Containers & assignment (1), Hashes & sets (1).

param-readonlyRaku++ passesRakudo passes2026-08-17 · 7c1c1471
  1. 1

    A plain scalar parameter is readonly; only is copy, is rw and is raw allow writing to it.

    sub replace($s) { $s ~~ s:g/01/10/ while $s ~~ /01/; $s } dies with "Cannot assign to a readonly variable"

  2. 2

    .= on a readonly parameter is refused, and so is a write to an is raw parameter bound to a value with no container.

param-trait-unparenthesised-argRaku++ passesRakudo passes2026-11-25 · e46aa838 · #284
  1. 1

    A trait takes an argument glued to its name as is name<…>, is name[…], is name{…} or is name(…) on every declarator, parameters included.

    sub MAIN(Bool :$v is option<!>) parses

    Also held by trait-arguments.

  2. 2

    The auto-invoked MAIN calls an ARGS-TO-CAPTURE that the program or an imported module provides.

    with Getopt::Long's hook, --no-v makes $v False instead of printing the usage

    Also held by main-hooks.

parameter-introspection-detailsRaku++ passesRakudo passes2026-07-26 · 4f4be87d
  1. 1

    Signature.params includes a method's invocant parameter, whose .invocant is True, while .arity and .count exclude it.

  2. 2

    Parameter.usage-name strips the twigil as well as the sigil.

    the parameter Str @*l has usage-name l

  3. 3

    A parameter with no default answers the Code type object from .default.

More from this test: Regexes & grammars (1).

parameter-twigil-and-sigilRaku++ passesRakudo passes2026-11-13 · 41150ad1 · rakudo#2275
  1. 1

    A Parameter answers .twigil.

  2. 2

    .sigil of a sigilless parameter \g or a capture parameter |c is its own sigil, not a letter of its name.

    .sigil of \g is not g and of |c is not c

parameter-whyRaku++ passesRakudo passes2026-08-07 · f3bdbbb5 · #17
  1. 1

    A parameter's trailing #= or leading #| declarator doc is returned by .WHY on the reflected Parameter.

    .signature.params[N].WHY answers the parameter's doc

params-refuse-what-sigil-refusesRaku++ passesRakudo passes2026-11-08 · 0ca4968e
  1. 2

    A named &c parameter takes a Callable only, as a positional one does.

  2. 3

    An Int %h parameter 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"

  3. 4

    A %h is copy parameter is a plain Hash whatever was passed, a Map or a Bag included.

  4. 6

    A given or with block's -> @a parameter takes a Positional only.

    given 5 -> @a is refused

More from this test: Compile-time errors (1), Containers & assignment (1).

parse-unicode-and-shapesRaku++ passesRakudo passes2026-09-12 · 39b5af4c
  1. 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 passes2026-09-14 · a3586267
  1. 7

    A definedness smiley is glued to its type, so in Str :U($x)! the :U after a space is a required named parameter and not a smiley.

    Str :U($x)! is a named parameter

  2. 11

    is rw takes effect on an anonymous routine used as a term.

  3. 25

    A where clause on a method parameter sees the invocant, so where $x ~~ $!type decides multi-method dispatch.

  4. 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 above multi method combine(@f) does not win a call passing one array

    Also held by slurpy-is-wider-than-a-declared-parameter.

  5. 34

    A where on a defaulted named parameter decides multi dispatch: a failing one loses the candidate instead of dying at the bind.

  6. 37

    A sub-signature made of named parameters, % (:$header!, :$body!), takes part in multi dispatch.

  7. 49

    A named argument passed to AT-POS or AT-KEY is forwarded as a named argument and is not treated as an index. inferred

    $ta.AT-POS(0, :check) reads index 0

  8. 51

    |$obj on a Hash-derived object slips its entries as named arguments.

  9. 55

    ::?CLASS used 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 passes2026-11-13 · ccda30e9 · rakudo#1355
  1. 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 passes2026-10-19 · 9550aecc
  1. 2

    A <-> or is rw parameter of a pointy block in front of a for modifier writes through to the element it is bound to.

    <-> $x { $x++ } for @a increments the elements of @a

  2. 3

    A pointy block with an empty signature in front of a for modifier fails to bind, because each element is one positional too many. inferred

    -> { … } for 1..2 does not bind

  3. 4

    Binding a <-> or is rw loop 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 passes2026-09-17 · 0aadbf85
  1. 1

    A routine produced by .assuming reports the .arity and .count of its remaining parameters, agreeing with .signature.arity and .signature.count.

proto-multi-as-termRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 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 passes2026-10-18 · 7d824d2b
  1. 1

    A proto written as a term whose value is taken gets the multis declared after it in the same scope.

    after my &up = proto sub f(|) {*} and multi sub f(Int:D $c) {…}, up(49) dispatches

  2. 2

    A proto term inside a block hides the outer multi group of the same name.

quanthash-roles-bindRaku++ passesRakudo passes2026-09-15 · 43815963
  1. 1

    A Bag, Set or Mix binds a parameter typed Baggy, Setty or Mixy, as it smartmatches those roles.

    multi sub mode(Baggy $x) can be called with a Bag

rak-chain-install-gapsRaku++ passesRakudo passes2026-10-10 · e1663c0c
  1. 2

    Multi dispatch weighs a definiteness smiley only between two parameters of the same type, so for a list a bare @x (Positional) outranks Cool:D $x.

    paragraphs($string.lines) picks paragraphs(@source) over paragraphs(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 passes2026-10-05 · 892e6c61
  1. 3

    A *&code parameter 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 passes2026-10-05 · e209ae16
  1. 7

    A bare block has a signature and answers .cando, and &?BLOCK in a with block 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 passes2026-10-05 · be813251
  1. 13

    A for whose block is -> *@x takes 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 passes2026-10-05 · 98ddcee4
  1. 1

    An explicit proto's .line is where its group was declared.

  2. 2

    An Int() @c parameter dispatches as a Positional[Int]: it takes an Array[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 passes2026-10-05 · e9cf7c7b
  1. 2

    my (::T, $x) := (Int, 5) captures a type into T for the rest of the scope.

  2. 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 passes2026-10-03 · 99895bb5
  1. 12

    A proto refuses 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 pass2026-09-11 · 6d82fac4
  1. 1

    A Regex binds to a &-sigil parameter in multi dispatch.

    rak(/ pattern /, :paths(…)) reaches multi sub rak(&pattern, *%n)

More from this test: Scoping & phasers (1).

roast-sweep-dispatchRaku++ passesRakudo passes2026-09-28 · 2cc896bd
  1. 1

    Multi candidates that differ only in parameters after ;; tie, and the call throws X::Multi::Ambiguous. inferred

    multi a(;; Any $b) beside multi a(;; Int $a): a(42) is X::Multi::Ambiguous

  2. 2

    An invocant type capture ::T: is in scope for a where clause later in the same signature. inferred

  3. 3

    A multi candidate with a sub-signature is narrower than the same parameter type without one. inferred

    multi u(@a) { 1 } beside multi u([]) { 2 }: u([]) is 2

    Also held by subsig-accepts-and-dispatch.

  4. 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

  5. 6

    An is rw parameter wants a Scalar container: it takes a variable and refuses an itemized array $[1, 2] or an array composer [1, 2]. inferred

  6. 9

    A proto's signature bounds a call before any candidate is tried: an arity or type outside the proto is refused even when a multi candidate would take it. inferred

    proto sub pa($x) {*}; multi sub pa($a, $b) { 2 }; pa(1, 2) is X::TypeCheck::Argument

  7. 12

    callwith in 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 pass2026-09-28 · 2cc896bd
  1. 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. 2

    A multi with no explicit proto has the generated proto signature :(;; Mu |), which accepts any capture. inferred

    &m1.signature.raku is :(;; Mu |)

  3. 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 &foo is undefined

  4. 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]).shape is (2,)

  5. 8

    A method's implicit *%_ shows in its signature, except in an is hidden class, whose methods refuse unknown named arguments. inferred

More from this test: Stringification (3).

routine-is-lexicalRaku++ passesRakudo passes2026-10-27 · 50aebf54
  1. 2

    samewith inside 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 passes2026-10-30 · 9b3fbb8a
  1. 2

    A subclass's multi-method dispatcher obtained with .^find_method and 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's foo candidate

More from this test: Classes, roles & the MOP (1).

runtime-built-signatureRaku++ passesRakudo does not pass2026-09-14 · 25552063 · #84
  1. 1

    Parameter.new(type => $t) and Signature.new(:params(…), :returns(…)) build objects whose accessors read the same as those of a parsed signature.

  2. 2

    A :( … ) signature literal keeps its --> T, so .returns answers T rather than Mu.

More from this test: Native types & NativeCall (2).

rw-arg-assignment-not-rerunRaku++ passesRakudo passes2026-10-12 · 2b12abd9
  1. 1

    When the argument for an is rw parameter 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 passes2026-10-06 · a124d91a · #130
  1. 2

    An is rw parameter 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.

  2. 3

    A write made through an is rw parameter before the callee throws is kept in the caller's variable.

More from this test: divergences (1).

rw-through-flatteningRaku++ passesRakudo passes2026-10-18 · 202c2bcb
  1. 1

    An is rw, is raw or \x parameter 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. 2

    A routine's |c capture forwarded on through wrappers still lets an is rw parameter write through to the arguments of the call that made it.

samewith-only-routineRaku++ passesRakudo passes2026-10-27 · cb5b360a
  1. 1

    samewith in 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 passes2026-08-20 · fa5c2fba
  1. 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)

  2. 3

    An is raw parameter binds the argument itself and does not itemize it.

More from this test: Containers & assignment (1).

seq-lol-and-callable-namedRaku++ passesRakudo passes2026-08-05 · 21d5791b
  1. 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 passes2026-09-27 · 0d048722
  1. 4

    A +@a slurpy handed one Seq binds a List, and a sigilless +a slurpy is always a List.

More from this test: Lists & laziness (4).

shaped-param-dimension-is-its-valueRaku++ passesRakudo passes2026-11-09 · 60e9df1f
  1. 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 passes2026-10-07 · c0496b90
  1. 4

    A raw loop parameter (-> \e or -> $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

  2. 5

    -> \row over an Array of Arrays receives each row as one item rather than iterating the row's elements.

  3. 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 passes2026-10-15 · 5549bf83
  1. 1

    A sigilless parameter \x is 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() and c(1, 2) are arity errors

More from this test: Everything else (1).

sigilless-param-refuses-a-bare-valueRaku++ passesRakudo passes2026-10-04 · c1fc5c06
  1. 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. 2

    An s/// on a sigilless name bound to a bare value is X::AdHoc, not X::Assignment::RO.

sigilless-parameter-binds-one-argumentRaku++ passesRakudo passes2026-10-21 · ab34f1e6
  1. 1

    A sigilless parameter (\b) binds exactly one argument, raw.

    sub f(\b) { b² } called with 2 is 4

signature-binding-errorsRaku++ passesRakudo passes2026-10-04 · b4264fa5
  1. 1

    A binding-failure exception carries the Parameter that refused, as .parameter.

  2. 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. 3

    An arity failure in a call through a variable or a |capture says "Too few positionals passed" or "Too many positionals passed".

  4. 4

    An anonymous parameter is called <anon> in a binding error message.

  5. 5

    A bare + and $? = default are valid parameters.

  6. 6

    The where clause of an omitted optional parameter takes part in multi dispatch.

  7. 7

    An @a parameter refuses a Hash argument.

    sub f(@a) refuses a Hash

  8. 8

    A native int parameter takes a Bool as its Int.

signature-return-literal-typeRaku++ passesRakudo passes2026-11-08 · 8fbd9e08
  1. 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 passes2026-11-07 · 32b1ea01 · #220
  1. 2

    A --> Int:D written 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 passes2026-09-15 · dcb882c0
  1. 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 passes2026-11-06 · b245ef4e
  1. 1

    A Hash or Map handed to a flattening slurpy *@a, or to +@a as its single argument, is bound as its Pairs.

    sub f(*@a) {…}; f(%h) binds the two Pairs of a two-entry hash

  2. 2

    The implicit @_ is a *@_ and flattens its arguments as any flattening slurpy does.

    f(@x) gives @_ the elements of @x and f(1..3) three elements

  3. 3

    A Set or a Bag, and anything in a $ container, stays whole in a flattening slurpy.

slurpy-of-values-is-immutableRaku++ passesRakudo passes2026-10-02 · 99f09017 · #109
  1. 1

    A *@l slurpy 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 passes2026-07-27 · d399d9a1
  1. 3

    A --> T return constraint is kept on a pointy block and on an anonymous sub or method, not only on a named sub.

More from this test: Hashes & sets (1), Lists & laziness (1), Strings & Unicode (1).

statistics-distributions-clusterRaku++ passesRakudo passes2026-08-21 · 41c4e624
  1. 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.

  2. 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 passes2026-11-09 · f907b840
  1. 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. 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 it2026-08-27 · 7d85d9c2
  1. 1

    An undefined value crossing a --> subset return is checked against the nominal base first and then the where clauses, so an Int-derived type object passes --> UInt and any refinement-free subset of it.

    method port(--> Port) with our subset Port of UInt may return the undefined Port

  2. 2

    An Any type object fails a UInt-based subset return type nominally, and a refining where still rejects a type object.

subsig-accepts-and-dispatchRaku++ passesRakudo passes2026-10-03 · 3fa9dcaf
  1. 1

    Whether an argument binds a destructuring sub-signature is decided, in Signature.ACCEPTS and in multi dispatch alike, by binding its .Capture against the inner parameters with their types, required nameds, slurpies and nested sub-signatures.

subsig-after-traitsRaku++ passesRakudo passes2026-09-16 · f130fff1
  1. 1

    A destructuring sub-signature may follow a parameter's trait.

    @metas is copy [$, *@]

  2. 2

    A parameter with both a sub-signature and a default destructures the default when no argument is passed.

    method m(@metas is copy [$, *@] = $.package-list) unpacks the default

subsig-unpacks-user-captureRaku++ passesRakudo passes2026-10-03 · 3fa9dcaf · #119
  1. 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 passes2026-09-17 · 2e994990
  1. 7

    .Capture on a Pair unpacks into the named arguments :key and :value.

    ('OH' => 'HAI').Capture binds :key and :value

  2. 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 $a dies

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 passes2026-08-03 · f204a165
  1. 1

    A routine's returns T may name a constant that 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 pass2026-10-11 · fc6abf32
  1. 8

    A Seq bound to a Positional $p parameter is a List there.

  2. 11

    In multi dispatch a narrower nominal type wins over a wider one that carries a where clause.

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 passes2026-09-03 · 3d4ec585
  1. 5

    my :($a, $b) := (…) declares and destructures like my ($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 $r at the default

More from this test: Containers & assignment (1), Stringification (1), Syntax & parsing (1), Types & coercion (1).

tries-with-frequenciesRaku++ passesRakudo passes2026-08-31 · 68e53568 · #53
  1. 2

    A &x parameter accepts a Callable type object such as WhateverCode.

More from this test: Hashes & sets (1), Lists & laziness (2), Classes, roles & the MOP (1), Operators (2).

type-capture-after-constraintRaku++ passesRakudo passes2026-09-16 · f130fff1
  1. 1

    Int ::T $x both constrains the parameter to the written type and captures the argument's type as T, for an argument, a default and a named parameter alike.

    f("s") is refused for sub f(Int ::T $x)

type-capture-constrainsRaku++ passesRakudo passes2026-09-17 · 0aadbf85
  1. 1

    A type captured with ::T constrains later parameters typed T, and binds T inside the body.

    sub f(::T, T $a) called as f(Int, "x") throws X::TypeCheck::Binding::Parameter

type-capture-ignores-a-leaked-classRaku++ passesRakudo passes2026-10-04 · c1fc5c06
  1. 1

    A bare ::T $x constrains 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 pass2026-09-17 · 1f4dc567
  1. 1

    ::T:U in a signature is an ordinary type constraint with a definedness smiley, not a type capture, so it captures nothing and an outer T stays visible in the body.

    in sub load-yaml(Str $input, ::Grammar:U :$schema = …), Grammar in the body is still the outer Grammar

type-capture-smiley-undeclared-nameRaku++ passesRakudo cannot run it2026-09-29 · 56d6e7a5
  1. 1

    A ::T:U $x parameter 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. 2

    The smiley form ::T:U captures 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 passes2026-10-24 · 07775af3
  1. 2

    The parameter of for ^$n -> int $i or -> Int $i is read-only, and each iteration is its own binding for closures, redo, phasers and do for.

  2. 4

    A typed for parameter 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 passes2026-10-04 · c1fc5c06
  1. 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) and g(Int) die

  2. 2

    An enum-typed parameter refuses a value that is not of the enum.

    f(5) into Color $c dies

  3. 3

    An Array[Int] $a parameter refuses a plain [1, 2].

More from this test: Types & coercion (1).

typed-positional-param-element-and-itemRaku++ passesRakudo passes2026-10-30 · 2df02ed1
  1. 1

    The .type of a typed @ parameter names the element type as resolved in its class, so a parameter In:D @f in a method of class K has Positional[K::In] and smartmatches against it work.

  2. 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 to Int @x

untyped-param-rejects-muRaku++ passesRakudo passes2026-08-10 · 862f352f
  1. 1

    An untyped routine parameter is implicitly Any-constrained, so passing Mu is a type-check failure.

    sub f($x) { }; f(Mu) fails to bind

  2. 2

    An untyped parameter of a pointy or bare block is Mu-constrained and accepts Mu.

    for (Mu) -> $x {…} binds

where-sees-earlier-params-ov-and-cursorRaku++ passesRakudo passes2026-08-20 · c40e93b5
  1. 1

    A where constraint 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 passes2026-08-04 · 28184bc3
  1. 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 passes2026-07-31 · e1679c33
  1. 1

    .wrap on a built-in routine takes effect for later bare calls: after &dir.wrap(...), dir(...) runs the wrapper.

    &dir.wrap(...) then dir(...) reaches the wrapper

xml-triad-backref-indirect-coerceRaku++ passesRakudo passes2026-07-23 · 903b4a38
  1. 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).