[06:36] *** abraxxa joined [06:40] *** abraxxa left [06:40] *** abraxxa joined [09:05] o/ [09:05] I found another enum bug [09:05] https://gist.github.com/patrickbkr/52c482d25fa0eb074efe2a8101949695 [09:06] Hi! What’s the error that gives? [09:13] patrickb: is this what you are getting? https://www.irccloud.com/pastebin/6GPz6FYQ/ [09:14] Type check failed in assignment to $!e; expected E but got E::E1 [09:14] in method new at /home/patrickb/rrepos/install/share/perl6/site/sources/31359EAA52B95E59401770AFEC03556C7839FDC2 (Red::Model) line 25 [09:14] in block at foo.raku line 11 [09:14] I don't think that will be hard to fix. But I'll need to leave that for after $DAYJOB... [09:14] Yes. [09:15] :-) No pressure at all please. I'm impressed that you answered that quick at all! [09:15] :) [09:16] But that's probably related to Red's own type check... so, that's probably just the case of adding a special handling for Enumerations or (better) comparing how Raked dos that and stealing the code... :) [09:20] I just updated the gist. I'm confused. [09:36] ok, it seems it will be even easier to fix... it seems I'm jut not decontainerising the value... [09:36] https://usercontent.irccloud-cdn.com/file/ABuAOsvY/image.png [09:36] (Sorry I've also copied the comments) [09:37] patrickb: but the answer deconting it seems right [09:38] patrickb: would you like to PR the fix for that? It's probably just the case of adding `.<>` on the methods return... [09:39] I got a local patch that makes it work. It just assigns `col.type` to a temporary var and uses that for matching. [09:39] I'll see what I can do. [09:39] https://usercontent.irccloud-cdn.com/file/dMiQIhBB/image.png [09:40] patrickb: ☝️ seems to work... it just need to be inside the method... [10:03] PR is up. [10:05] That looks good! Can I ask you another favour? Would you mind on adding that code as a test, please? [10:07] patrickb: ☝️ sorry for asking that [10:22] *** lizmat_ joined [10:26] *** lizmat left [10:26] *** lizmat_ is now known as lizmat [10:38] Will do! [10:59] patrickb: thank you very much! [11:01] patrickb: I'll merge it as soon as the tests finish running [11:18] patrickb: done, thanks! later today I'll release it [11:37] Thank you! [12:15] *** abraxxa left [13:25] *** lizmat_ joined [13:27] *** lizmat left [13:32] *** lizmat_ is now known as lizmat [22:04] *** patrickb_ joined [22:07] *** patrickb left [22:07] *** patrickb_ is now known as patrickb