diff options
author | akashlal <unknown> | 2014-09-25 10:34:30 +0530 |
---|---|---|
committer | akashlal <unknown> | 2014-09-25 10:34:30 +0530 |
commit | f6981d46b1373bbe3d3ff43981dba84dba2eb43a (patch) | |
tree | 40c28c565289342ebcaf2d8fa31ab67cc5ed83e9 /Source/Core/Absy.cs | |
parent | 9897cb74c1f9e7139b9a1d890aca4168cfd95326 (diff) |
The setter is better this way
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r-- | Source/Core/Absy.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs index d5abda9b..27cd7efd 100644 --- a/Source/Core/Absy.cs +++ b/Source/Core/Absy.cs @@ -453,8 +453,13 @@ namespace Microsoft.Boogie { set
{
+ // materialize the decls, in case there is any dependency
+ // back on topLevelDeclarations
+ var v = value.ToList();
+ // now clear the decls
ClearTopLevelDeclarations();
- AddTopLevelDeclarations(value);
+ // and add the value
+ AddTopLevelDeclarations(v);
}
}
|