diff options
author | Rustan Leino <leino@microsoft.com> | 2011-05-27 01:44:26 -0700 |
---|---|---|
committer | Rustan Leino <leino@microsoft.com> | 2011-05-27 01:44:26 -0700 |
commit | 803f42612314d2d27f20dfa476bf0ff8ed24d958 (patch) | |
tree | f341d7239381047f31d761938df3b9e1f7a3874c /Test/dafny1/Induction.dfy | |
parent | e1bf8c0bfff274a0651fb581951cfcaae8b34007 (diff) |
Dafny: permanently changed the syntax of "datatype" declarations to what previously was an alternative syntax
Diffstat (limited to 'Test/dafny1/Induction.dfy')
-rw-r--r-- | Test/dafny1/Induction.dfy | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Test/dafny1/Induction.dfy b/Test/dafny1/Induction.dfy index 2c90769b..de5a3358 100644 --- a/Test/dafny1/Induction.dfy +++ b/Test/dafny1/Induction.dfy @@ -136,10 +136,7 @@ class IntegerInduction { }
}
-datatype Tree<T> {
- Leaf(T);
- Branch(Tree<T>, Tree<T>);
-}
+datatype Tree<T> = Leaf(T) | Branch(Tree<T>, Tree<T>);
class DatatypeInduction<T> {
function LeafCount<T>(tree: Tree<T>): int
|