Skip to content

Commit 884d509

Browse files
committed
Give NQPMu a default at_pos and at_key for type object invocants, like we have for Any in Rakudo.
1 parent e817f40 commit 884d509

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/core/NQPMu.pm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ my class NQPMu {
8686
0
8787
}
8888

89+
proto method at_pos($pos) is parrot_vtable('get_pmc_keyed_int') { * }
90+
multi method at_pos(NQPMu:U $self: $pos) {
91+
NQPMu
92+
}
93+
94+
proto method at_key($key) is parrot_vtable('get_pmc_keyed_str') { * }
95+
multi method at_key(NQPMu:U $self: $key) {
96+
NQPMu
97+
}
98+
8999
method defined() is parrot_vtable('defined') {
90100
nqp::isconcrete(self)
91101
}

0 commit comments

Comments
 (0)