Closed mpickering closed 6 years ago
There are several contributing factors to the problem.
MkT
has a wrapper $WMkT
which has linear arguments. Thus when $WMkT
is beta reduced, the let bound variables are linear. prepareRhs
then transforms xy[1] = (5. 6)
into d1[w] = 5; d2[w] = 6; xy[1] = (d1, d2)
. This happens in a nested manner -- then the usage of xy
ends up being multiplied by w
which results in the core lint error. I don't know what the correct way to fix this is so I am going to punt it for now.
As far as I can tell, this has been long fixed.
The error occurs as follows: