summaryrefslogtreecommitdiff
path: root/Source/Dafny/Compiler.cs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-08-11 23:08:17 -0700
committerGravatar leino <unknown>2015-08-11 23:08:17 -0700
commit41d16e5a28b4eab7fb56f04c76759f8e24678b74 (patch)
tree265f2e16d890f531430e77db49dbc4f0f8165366 /Source/Dafny/Compiler.cs
parent4325b50ed7732bdd2b7b7455bd290f385d0f5383 (diff)
Bug fixes and improvements in pretty printing
Diffstat (limited to 'Source/Dafny/Compiler.cs')
-rw-r--r--Source/Dafny/Compiler.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/Dafny/Compiler.cs b/Source/Dafny/Compiler.cs
index 4fdd34f6..f02f7861 100644
--- a/Source/Dafny/Compiler.cs
+++ b/Source/Dafny/Compiler.cs
@@ -1201,13 +1201,7 @@ namespace Microsoft.Dafny {
Contract.Requires(cce.NonNullElements(targs));
Contract.Ensures(Contract.Result<string>() != null);
- string s = "";
- string sep = "";
- foreach (TypeParameter tp in targs) {
- s += sep + "@" + tp.CompileName;
- sep = ",";
- }
- return s;
+ return Util.Comma(targs, tp => "@" + tp.CompileName);
}
string DefaultValue(Type type)