Closed darrenjw closed 1 year ago
Thanks for the bug report. I think I know what the problem is and I'll add the fix to my current patch (#1261). In the meantime, you can write this instead:
struct PImage(r|Ix, c|Ix, a) =
row: r
col: c
im: r=>c=>a
But the compiler should have told you that.
Also, a heads up: when #1261 lands you'll just write PImage(0@(Fin rows), 0@(Fin cols), bi)
instead of PImage.new(0@(Fin rows), 0@(Fin cols), bi)
That fixes my (current) problem - many thanks for your prompt response!
I'm hitting a compiler bug that I'm struggling to get past. I may be doing something wrong, in which case pointers would be appreciated. Minimal example below.