use v6;
use Test;

class A {

    multi method foo(False) { False; }
    multi method foo(0)     { False; }
    multi method foo(Any:D) { 42; }

    CHECK {
        my $r := A.^find_method("foo");
        my $p := $r.package;
        $p.^add_multi_method("bar", $r);
        }
    }

dd A.new.foo(False);
dd A.new.bar(False);

