We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a9b349 commit d5c0011Copy full SHA for d5c0011
src/HLL/Compiler.pm
@@ -128,13 +128,16 @@ class HLL::Compiler {
128
};
129
if nqp::defined($*MAIN_CTX) {
130
my $cur_ctx := $*MAIN_CTX;
131
+ my %seen;
132
until nqp::isnull($cur_ctx) {
133
my $pad := nqp::ctxlexpad($cur_ctx);
134
unless nqp::isnull($pad) {
135
for $pad {
136
my str $key := ~$_;
- %interactive_pad{$key} := nqp::atkey($pad, $key)
137
- unless nqp::existskey(%interactive_pad, $key);
+ unless nqp::existskey(%seen, $key) {
138
+ %interactive_pad{$key} := nqp::atkey($pad, $key);
139
+ %seen{$key} := 1;
140
+ }
141
}
142
143
$cur_ctx := nqp::ctxouter($cur_ctx);
0 commit comments