Selaa lähdekoodia

Don't eat compile errors.

woollybah 8 vuotta sitten
vanhempi
commit
d27e8f2ef0
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      expr.bmx

+ 5 - 1
expr.bmx

@@ -1633,7 +1633,11 @@ Type TBinaryMathExpr Extends TBinaryExpr
 					Return New TInvokeMemberExpr.Create( lhs, decl, args ).Semant()
 				End If
 			Catch error:String
-				Err "Operator " + op + " cannot be used with Objects."
+				If error.StartsWith("Compile Error") Then
+					Throw error
+				Else
+					Err "Operator " + op + " cannot be used with Objects."
+				End If
 			End Try
 		End If