diff options
author | Rustan Leino <unknown> | 2015-07-07 15:27:58 -0700 |
---|---|---|
committer | Rustan Leino <unknown> | 2015-07-07 15:27:58 -0700 |
commit | f235dfbc792bb885f3c76e4267658c1a9ef838d8 (patch) | |
tree | 3bab8cd7af82026d47a2b113497766db5b080545 /Source/Dafny/DafnyAst.cs | |
parent | f177d7dc96b27f5ca3b777d31fcd9bad26be6ce5 (diff) |
Fixed crashes in overrides checking of function decreases clauses, and improved the error message reported to users
Diffstat (limited to 'Source/Dafny/DafnyAst.cs')
-rw-r--r-- | Source/Dafny/DafnyAst.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Dafny/DafnyAst.cs b/Source/Dafny/DafnyAst.cs index 134fb4c1..d14d82a3 100644 --- a/Source/Dafny/DafnyAst.cs +++ b/Source/Dafny/DafnyAst.cs @@ -2223,6 +2223,7 @@ namespace Microsoft.Dafny { public interface ICallable : ICodeContext
{
IToken Tok { get; }
+ string WhatKind { get; }
string NameRelativeToModule { get; }
Specification<Expression> Decreases { get; }
/// <summary>
@@ -2234,6 +2235,7 @@ namespace Microsoft.Dafny { }
public class DontUseICallable : ICallable
{
+ public string WhatKind { get { throw new cce.UnreachableException(); } }
public bool IsGhost { get { throw new cce.UnreachableException(); } }
public List<TypeParameter> TypeArgs { get { throw new cce.UnreachableException(); } }
public List<Formal> Ins { get { throw new cce.UnreachableException(); } }
|