summaryrefslogtreecommitdiff
path: root/Source/Dafny/Translator.cs
diff options
context:
space:
mode:
authorGravatar Reza Ahmadi <reza.ahmadi@uta.fi>2014-08-24 20:58:59 +0300
committerGravatar Reza Ahmadi <reza.ahmadi@uta.fi>2014-08-24 20:58:59 +0300
commit68f0dda698c929864058fa89f81e39cc2a3a811d (patch)
treecc4636c5a539cc812f61c79048ea590ec05f4b7b /Source/Dafny/Translator.cs
parentbefdd8a292136cf959b2f5f9731b04fdec498179 (diff)
changed $implements function argument type to ClassNameType (from Ty)
Diffstat (limited to 'Source/Dafny/Translator.cs')
-rw-r--r--Source/Dafny/Translator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Translator.cs b/Source/Dafny/Translator.cs
index 4199157e..ca30c88c 100644
--- a/Source/Dafny/Translator.cs
+++ b/Source/Dafny/Translator.cs
@@ -1242,7 +1242,7 @@ namespace Microsoft.Dafny {
//this adds: function implements$J(ClassName): bool;
if (c is TraitDecl)
{
- var arg_ref = new Bpl.Formal(c.tok, new Bpl.TypedIdent(c.tok, Bpl.TypedIdent.NoName, predef.Ty), true);
+ var arg_ref = new Bpl.Formal(c.tok, new Bpl.TypedIdent(c.tok, Bpl.TypedIdent.NoName, predef.ClassNameType), true);
var res = new Bpl.Formal(c.tok, new Bpl.TypedIdent(c.tok, Bpl.TypedIdent.NoName, Bpl.Type.Bool), false);
var implement_intr = new Bpl.Function(c.tok, "implements$" + c.Name, new List<Variable> { arg_ref }, res);
sink.TopLevelDeclarations.Add(implement_intr);