Permalink
Browse files

Fix issue 9774 Error message with __error using == on tuple members

  • Loading branch information...
1 parent 585eb29 commit 396d9a7906b6349f5e1c5ce3818ec09e3a95ec0e @don-clugston-sociomantic don-clugston-sociomantic committed Mar 21, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/cast.c
View
@@ -2695,6 +2695,11 @@ Expression *BinExp::typeCombine(Scope *sc)
if (!typeMerge(sc, this, &type, &e1, &e2))
goto Lerror;
+ // If the types have no value, return an error
+ if (e1->op == TOKerror)
+ return e1;
+ if (e2->op == TOKerror)
+ return e2;
return this;
Lerror:

0 comments on commit 396d9a7

Please sign in to comment.