summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar Checkmate50 <dgeisler50@gmail.com>2016-06-07 10:24:02 -0600
committerGravatar Checkmate50 <dgeisler50@gmail.com>2016-06-07 10:24:02 -0600
commit49c7d1d0133a789bb8eaa4cc0ff14c5e4493545e (patch)
tree7af1ccd694616d41406a8f0fc550da9eff338046 /Source
parent743be23f3961e02f1d556860f9fb0e17b98ab54d (diff)
removed an unnecessary type checking addition
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/AbsyExpr.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/AbsyExpr.cs b/Source/Core/AbsyExpr.cs
index b980a22b..d3e63922 100644
--- a/Source/Core/AbsyExpr.cs
+++ b/Source/Core/AbsyExpr.cs
@@ -2277,7 +2277,6 @@ namespace Microsoft.Boogie {
private readonly string name;
private readonly Type type;
private readonly Type argType;
- private readonly Type argType2;
private readonly int hashCode;
public ArithmeticCoercion(IToken tok, CoercionType coercion) {
@@ -2357,9 +2356,9 @@ namespace Microsoft.Boogie {
tpInstantiation = SimpleTypeParamInstantiation.EMPTY;
- if (!(cce.NonNull(cce.NonNull(args[0]).Type).Unify(argType) || cce.NonNull(cce.NonNull(args[0]).Type).Unify(argType2)))
+ if (!cce.NonNull(cce.NonNull(args[0]).Type).Unify(argType))
{
- tc.Error(this.tok, "argument type {0} does not match expected type {1} or type {2}", cce.NonNull(args[0]).Type, this.argType, this.argType2);
+ tc.Error(this.tok, "argument type {0} does not match expected type {1}", cce.NonNull(args[0]).Type, this.argType);
}
return this.type;