summaryrefslogtreecommitdiff
path: root/Source/Dafny/Compiler.cs
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2013-06-25 15:32:39 -0700
committerGravatar Rustan Leino <unknown>2013-06-25 15:32:39 -0700
commitd55819f900ea34132987eb8aa1e9990dce96729b (patch)
tree4e1de152e3ae3b576f53fa9094bc4ce69c9bab24 /Source/Dafny/Compiler.cs
parent6f8d64477512d93bb127c7cd9b9134840dabe4da (diff)
Fixed compilation bug where C# keywords were not being escaped
Diffstat (limited to 'Source/Dafny/Compiler.cs')
-rw-r--r--Source/Dafny/Compiler.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Dafny/Compiler.cs b/Source/Dafny/Compiler.cs
index 502f7f8a..60ee42f7 100644
--- a/Source/Dafny/Compiler.cs
+++ b/Source/Dafny/Compiler.cs
@@ -1976,7 +1976,7 @@ namespace Microsoft.Dafny {
if (sf != null) {
wr.Write(sf.PreString);
TrParenExpr(e.Obj);
- wr.Write(".{0}", sf.CompiledName);
+ wr.Write(".@{0}", sf.CompiledName);
wr.Write(sf.PostString);
} else {
TrParenExpr(e.Obj);
@@ -2307,7 +2307,7 @@ namespace Microsoft.Dafny {
} else if (callString != null) {
wr.Write(preOpString);
TrParenExpr(e.E0);
- wr.Write(".{0}(", callString);
+ wr.Write(".@{0}(", callString);
TrExpr(e.E1);
wr.Write(")");
}