diff options
author | leino <unknown> | 2015-03-07 17:03:35 -0800 |
---|---|---|
committer | leino <unknown> | 2015-03-07 17:03:35 -0800 |
commit | 1157b689cbc7c65cde1f20192e8b3b49046d6fc4 (patch) | |
tree | 86c8df3819110e095b045d242f3ee013a1bfe066 /Test | |
parent | 13b3fc763b1d5ab070eb4583bbca342ec0582ac4 (diff) |
Added 'protected' keyword (syntax)
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny0/Simple.dfy | 11 | ||||
-rw-r--r-- | Test/dafny0/Simple.dfy.expect | 14 |
2 files changed, 25 insertions, 0 deletions
diff --git a/Test/dafny0/Simple.dfy b/Test/dafny0/Simple.dfy index 8fc61395..f7bfcb70 100644 --- a/Test/dafny0/Simple.dfy +++ b/Test/dafny0/Simple.dfy @@ -63,3 +63,14 @@ colemma M'(x': int) ensures true;
{
}
+
+// modifiers on functions
+
+class CF {
+ static function F(): int
+ predicate method G()
+ copredicate Co()
+ protected function H(): int
+ static protected function method I(): real
+ protected static predicate method J()
+}
diff --git a/Test/dafny0/Simple.dfy.expect b/Test/dafny0/Simple.dfy.expect index 1e6a4f11..e6647c8a 100644 --- a/Test/dafny0/Simple.dfy.expect +++ b/Test/dafny0/Simple.dfy.expect @@ -53,6 +53,20 @@ class C { var list: List<bool>
}
+class CF {
+ static function F(): int
+
+ predicate method G()
+
+ copredicate Co(): bool
+
+ protected function H(): int
+
+ static protected function method I(): real
+
+ static protected predicate method J()
+}
+
lemma M(x: int)
ensures x < 8
{
|