summaryrefslogtreecommitdiff
path: root/Test/dafny0/columns.dfy
blob: e36142bed915a6bef8255ea49ca423cb526ddb69 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %dafny "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

// Dafny counts columns from 0, but Boogie from one, so for a while there were small bugs with that.

static method A(x:int) requires x > 0 { // error os 's'
  assert (forall y :: y > x ==> y > 100); // error on '('
  assert x != 1; // error on '!'
  assert x in {}; // error on 'i'
}