summaryrefslogtreecommitdiff
path: root/Test/dafny0/IndexIntoUpdate.dfy
blob: 01359e04d62fdc59e59ac89e5172d270984e45f2 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
method M()  {
  var s := [1, 2, 3, 4];
  assert 3 in s;
  s := s[0 := 1];
  if * { assert 3 in s; } // FIXME: This should verify
  else { assert s[2] == 3; assert 3 in s; }
}