summaryrefslogtreecommitdiff
path: root/Test/hofs/Consequence.dfy
blob: 9c62a6ba33183e81537c76c3b14550c53da117aa (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %dafny /compile:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype Nat = x | 0 <= x

method Check() {
  var f : Nat -> Nat;
  assume f.requires(0);
  var i : Nat := f(0);
}