Closed tangent-vector closed 8 years ago
This is fixed in latest code but I can't push now, to fix in your branch, search "Error(30080, L"the two value" and modify the if statement above it to:
if (!expr->Expr0->Type->Equals(expr->Expr1->Type))
I worked around this for now by using an if
statement. If I find that I need the fix I will apply it. Thanks!
Tried applying that fix, and it seems to fail on implicit conversion of the expr->Expr1->Type
part to an ordinary pointer (it is a smart pointer). I inserted an explicit call to .Ptr()
and it was fine, so I'm not sure what is the reason for the issue.
Also note that I appear to have run into a suspiciously similar issue with Spire's range-style for
loop where I get an error 30019: type mismatch 'int' and 'int'
. Looking at the code of VisitForStatement
there appear to be similar type !=
tests that need to be changed to use Equals
.
That's a good catch. Yes, '==' must be replaced with ->Equals in all these places. And yes, .Ptr() should be added. Thanks!
this issue is fixed in latest update.
This code:
Yields the error message: