summaryrefslogtreecommitdiff
path: root/Test/dafny0/Datatypes.dfy
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2015-03-05 12:04:37 -0800
committerGravatar qunyanm <unknown>2015-03-05 12:04:37 -0800
commitdb30cafd94527e73e969457c9c00e8c67300d7d4 (patch)
tree304827ba0d57583141f110b2834ae040b7453bb4 /Test/dafny0/Datatypes.dfy
parentdbce023dbbbc2a73853c3d2b6251e85d4d627376 (diff)
Stop pretty-print from emitting deprecated semi-colons.
Diffstat (limited to 'Test/dafny0/Datatypes.dfy')
-rw-r--r--Test/dafny0/Datatypes.dfy10
1 files changed, 5 insertions, 5 deletions
diff --git a/Test/dafny0/Datatypes.dfy b/Test/dafny0/Datatypes.dfy
index 488f6056..25adaa91 100644
--- a/Test/dafny0/Datatypes.dfy
+++ b/Test/dafny0/Datatypes.dfy
@@ -1,7 +1,7 @@
// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
-datatype List<T> = Nil | Cons(T, List<T>);
+datatype List<T> = Nil | Cons(T, List<T>)
class Node {
var data: int;
@@ -140,7 +140,7 @@ class NestedMatchExpr {
// ------------------- datatype destructors ---------------------------------------
-datatype XList = XNil | XCons(Car: int, Cdr: XList);
+datatype XList = XNil | XCons(Car: int, Cdr: XList)
method Destructors0(d: XList) {
Lemma_AllCases(d);
@@ -208,8 +208,8 @@ method MatchingDestructor(d: XList) returns (r: XList)
r := XCons(5, XNil);
}
-datatype Triple = T(a: int, b: int, c: int); // just one constructor
-datatype TripleAndMore = T'(a: int, b: int, c: int) | NotATriple;
+datatype Triple = T(a: int, b: int, c: int) // just one constructor
+datatype TripleAndMore = T'(a: int, b: int, c: int) | NotATriple
method Rotate0(t: Triple) returns (u: Triple)
{
@@ -249,7 +249,7 @@ function FwdBugFunction(f: Fwd): bool
// There was once a bug in Dafny, where this had caused an ill-defined Boogie program.
}
-datatype Fwd = FwdNil | FwdCons(k: int, w: Fwd);
+datatype Fwd = FwdNil | FwdCons(k: int, w: Fwd)
method TestAllCases(f: Fwd)
{