Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

Raku

Visibility

public

Author

fernando-correa

Created

2026-04-02T18:12:34.661365Z

Updated

2026-04-02T18:30:50.48772Z

role A[%types?] {
    %types{ ::?CLASS.prefix } := ::?CLASS if ::?CLASS.^find_method("prefix", :local);
    method prefix {...};
    method WHICH {"bbb"};
    method dump-types { dd %types }
    
}

class B does A {
    method prefix {"aaa"}
}

class C does A {
    method prefix {"ccc"}
}

B.dump-types;
C.dump-types;
INFO