diff options
author | 2014-08-24 20:58:59 +0300 | |
---|---|---|
committer | 2014-08-24 20:58:59 +0300 | |
commit | 68f0dda698c929864058fa89f81e39cc2a3a811d (patch) | |
tree | cc4636c5a539cc812f61c79048ea590ec05f4b7b /Source/Dafny/Translator.cs | |
parent | befdd8a292136cf959b2f5f9731b04fdec498179 (diff) |
changed $implements function argument type to ClassNameType (from Ty)
Diffstat (limited to 'Source/Dafny/Translator.cs')
-rw-r--r-- | Source/Dafny/Translator.cs | 2 |
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);
|