diff options
author | leino <unknown> | 2015-01-23 16:17:23 -0800 |
---|---|---|
committer | leino <unknown> | 2015-01-23 16:17:23 -0800 |
commit | 227fa997dd25a41c8bfc86d919635b6677df2c5f (patch) | |
tree | 4ac05f6efa2a3d51ff46118c61567f3b1f52d120 /Test/hofs | |
parent | 97e7528b3cd3e9b9e21b75abf817d6e0ed3b9df7 (diff) |
Switched use of List(IToken) in UserDefinedType to NameSegment/ExprDotName, so use the new name resolution machinery that handles modules and type parameters
Included some inadvertently left-out test cases in dafny0/Modules0.dfy
Fixed comparable-types tests
Diffstat (limited to 'Test/hofs')
-rw-r--r-- | Test/hofs/Consequence.dfy | 7 | ||||
-rw-r--r-- | Test/hofs/Consequence.dfy.expect | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Test/hofs/Consequence.dfy b/Test/hofs/Consequence.dfy index 35934470..9c62a6ba 100644 --- a/Test/hofs/Consequence.dfy +++ b/Test/hofs/Consequence.dfy @@ -1,9 +1,10 @@ // RUN: %dafny /compile:0 "%s" > "%t" // RUN: %diff "%s.expect" "%t" +newtype Nat = x | 0 <= x + method Check() { - var f : nat -> nat; + var f : Nat -> Nat; assume f.requires(0); - var i : nat := f(0); + var i : Nat := f(0); } - diff --git a/Test/hofs/Consequence.dfy.expect b/Test/hofs/Consequence.dfy.expect index 069e7767..52595bf9 100644 --- a/Test/hofs/Consequence.dfy.expect +++ b/Test/hofs/Consequence.dfy.expect @@ -1,2 +1,2 @@ -Dafny program verifier finished with 2 verified, 0 errors
+Dafny program verifier finished with 3 verified, 0 errors
|