Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Grunwald <daniel@danielgrunwald.de>2012-07-01 17:28:13 +0400
committerDaniel Grunwald <daniel@danielgrunwald.de>2012-07-01 17:28:13 +0400
commit807e9c5fced0b8a50970249a0be80b444ca46074 (patch)
tree93b0eceafb1b6e4f2e8d913a318ce765f765d181 /ICSharpCode.NRefactory.ConsistencyCheck
parent0aa37bcf44c33bd718e719b884d80e021229fa0c (diff)
Allow multiple occurrences of UnknownError.
Diffstat (limited to 'ICSharpCode.NRefactory.ConsistencyCheck')
-rw-r--r--ICSharpCode.NRefactory.ConsistencyCheck/ResolverTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ICSharpCode.NRefactory.ConsistencyCheck/ResolverTest.cs b/ICSharpCode.NRefactory.ConsistencyCheck/ResolverTest.cs
index a5b191ed..ee367f8a 100644
--- a/ICSharpCode.NRefactory.ConsistencyCheck/ResolverTest.cs
+++ b/ICSharpCode.NRefactory.ConsistencyCheck/ResolverTest.cs
@@ -71,7 +71,7 @@ namespace ICSharpCode.NRefactory.ConsistencyCheck
if (CSharpAstResolver.IsUnresolvableNode(node))
throw new InvalidOperationException("Resolved unresolvable node");
if (!ParenthesizedExpression.ActsAsParenthesizedExpression(node))
- if (!resolveResults.Add(result))
+ if (!resolveResults.Add(result) && result != ErrorResolveResult.UnknownError)
throw new InvalidOperationException("Duplicate resolve result");
if (result.IsError && !allowErrors) {