summaryrefslogtreecommitdiff
path: root/Source/Dafny/Resolver.cs
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2015-07-29 17:35:18 -0700
committerGravatar Rustan Leino <unknown>2015-07-29 17:35:18 -0700
commit7e7eb1a4177e03f6bb22411b7246db1d26f5ed27 (patch)
tree36fd9866764a6caf9be0b71e76c5a2ade9dbf45d /Source/Dafny/Resolver.cs
parent13bb45d5350cb6b0ce6b731d6552780b0d147265 (diff)
Fixed crash in resolution where, after reporting an error, the cases #type and #module were not handled
Diffstat (limited to 'Source/Dafny/Resolver.cs')
-rw-r--r--Source/Dafny/Resolver.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Dafny/Resolver.cs b/Source/Dafny/Resolver.cs
index e3083133..e977dbd5 100644
--- a/Source/Dafny/Resolver.cs
+++ b/Source/Dafny/Resolver.cs
@@ -4491,6 +4491,10 @@ namespace Microsoft.Dafny
// something is wrong; either aa or bb wasn't properly resolved, or they don't unify
return false;
}
+ } else if (a is Resolver_IdentifierExpr.ResolverType_Type) {
+ return b is Resolver_IdentifierExpr.ResolverType_Type;
+ } else if (a is Resolver_IdentifierExpr.ResolverType_Module) {
+ return b is Resolver_IdentifierExpr.ResolverType_Module;
} else {
Contract.Assert(false); throw new cce.UnreachableException(); // unexpected type
}