Assert Failed assignment lhs contains slice
huangjd opened this issue · 0 comments
huangjd commented
Input
export func main()
var A : tensor[3,3](int);
var B : tensor[3,3](int);
var C : tensor[3,3](int);
A(:,:) = B(:,:) + C(:,:);
end
Error message
Please report it to http://issues.simit-lang.org
Condition failed: isa<E>(e)
Wrong Expr type (.tmpfree0,.tmpfree1 A(.tmpfree0,.tmpfree1))
Similar error occurs when lhs of assignment has slice indices.
For example:
export func main()
var A : tensor[3,3](int);
var B : tensor[3](int);
var C : tensor[3](int);
A(:,1) = B+C;
end