summaryrefslogtreecommitdiff
path: root/Test/hofs/Consequence.dfy
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-01-23 16:17:23 -0800
committerGravatar leino <unknown>2015-01-23 16:17:23 -0800
commit227fa997dd25a41c8bfc86d919635b6677df2c5f (patch)
tree4ac05f6efa2a3d51ff46118c61567f3b1f52d120 /Test/hofs/Consequence.dfy
parent97e7528b3cd3e9b9e21b75abf817d6e0ed3b9df7 (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/Consequence.dfy')
-rw-r--r--Test/hofs/Consequence.dfy7
1 files changed, 4 insertions, 3 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);
}
-