diff options
author | Patrick Spek <p.spek@tyil.nl> | 2018-03-14 10:24:53 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2018-03-14 10:25:00 +0100 |
commit | c0753e9c075df3e28ef7e342ab4510cdd8dbafde (patch) | |
tree | 73352f0f1cffbc3bb7d4637c71c2b07ae4c76f0f /lib/Hash | |
parent | 750b429a3051115aa65a272511dbcf2dc4ba6ddb (diff) |
Add no precompilation pragma
Fixes #1
Diffstat (limited to 'lib/Hash')
-rw-r--r-- | lib/Hash/Merge.pm6 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Hash/Merge.pm6 b/lib/Hash/Merge.pm6 index c0358c8..b256b8e 100644 --- a/lib/Hash/Merge.pm6 +++ b/lib/Hash/Merge.pm6 @@ -3,6 +3,10 @@ use v6.c; use MONKEY-TYPING; +# Don't use precompilation in order to not conflict with other MONKEY-TYPING +# modules. +no precompilation; + augment class Hash { #| Merges a second hash into the hash the method is called on. Hash given as @@ -14,11 +18,11 @@ augment class Hash #| becomes an Array type. #| Use :no-append-array to replace arrays and positionals instead, which will #| also retain the original type and not convert to an Array - #| multi method merge (Hash:U: %b, Bool:D :$no-append-array = False) { warn "Cannot merge an undefined Hash!"; return %b; } + multi method merge (Hash:D: %b, Bool:D :$no-append-array = False) { hashmerge self, %b, :$no-append-array; @@ -55,3 +59,5 @@ augment class Hash %merge-into; } } + +# vim: ft=perl6 ts=4 sw=4 et |