summaryrefslogtreecommitdiff
path: root/Source/VCExpr
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2013-07-23 17:51:02 -0700
committerGravatar wuestholz <unknown>2013-07-23 17:51:02 -0700
commit99737bee84e43094394d8827bf5fd50dd1304aec (patch)
tree0ebeb5a47797387c3bd9beedbaa5ef98712bc2ba /Source/VCExpr
parent306ac9e33862a969fef0415501a3b7d5be1d3c37 (diff)
Resolved some issues with data races.
Diffstat (limited to 'Source/VCExpr')
-rw-r--r--Source/VCExpr/TypeErasure.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/VCExpr/TypeErasure.cs b/Source/VCExpr/TypeErasure.cs
index 3fb0a3ff..0e3cc9d8 100644
--- a/Source/VCExpr/TypeErasure.cs
+++ b/Source/VCExpr/TypeErasure.cs
@@ -916,7 +916,7 @@ namespace Microsoft.Boogie.TypeErasure {
Contract.Requires(rawType != null);
Contract.Ensures(Contract.Result<MapType>() != null);
List<Type>/*!*/ newArguments = new List<Type>();
- foreach (Type/*!*/ subtype in rawType.Arguments) {
+ foreach (Type/*!*/ subtype in rawType.Arguments.ToList()) {
Contract.Assert(subtype != null);
newArguments.Add(ThinOutType(subtype, rawType.TypeParameters,
instantiations));
@@ -964,7 +964,7 @@ namespace Microsoft.Boogie.TypeErasure {
// traverse the subtypes
CtorType/*!*/ rawCtorType = rawType.AsCtor;
List<Type>/*!*/ newArguments = new List<Type>();
- foreach (Type/*!*/ subtype in rawCtorType.Arguments) {
+ foreach (Type/*!*/ subtype in rawCtorType.Arguments.ToList()) {
Contract.Assert(subtype != null);
newArguments.Add(ThinOutType(subtype, boundTypeParams,
instantiations));