Skip to content

Commit 8271e99

Browse files
committed
further finesse tie() multis
1 parent a184341 commit 8271e99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/PDF/COS/Tie.rakumod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ my class COSAttr {
9191
$Lock.protect: {
9292
$lval.obj-num //= -1
9393
} if $!is-indirect;
94-
nextsame;
94+
$lval;
9595
}
9696
multi method tie($lval is rw where $lval ~~ $!type) is rw {
9797
$lval;
@@ -138,10 +138,10 @@ my class COSAttr {
138138
$lval;
139139
}
140140

141-
multi method tie(List $lval is rw where $!type ~~ Positional[Mu], :$check) is rw {
141+
multi method tie(List $lval where $!type ~~ Positional[Mu], :$check) {
142142
self!tie-container: $lval, :$check;
143143
}
144-
multi method tie(Hash $lval is rw where $!type ~~ Associative[Mu], :$check) is rw {
144+
multi method tie(Hash $lval where $!type ~~ Associative[Mu], :$check) {
145145
self!tie-container: $lval, :$check;
146146
}
147147
multi method tie($lval is rw, :$check) is rw {

0 commit comments

Comments
 (0)