summaryrefslogtreecommitdiff
path: root/Test/dafny0/Simple.dfy
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-03-07 17:03:35 -0800
committerGravatar leino <unknown>2015-03-07 17:03:35 -0800
commit1157b689cbc7c65cde1f20192e8b3b49046d6fc4 (patch)
tree86c8df3819110e095b045d242f3ee013a1bfe066 /Test/dafny0/Simple.dfy
parent13b3fc763b1d5ab070eb4583bbca342ec0582ac4 (diff)
Added 'protected' keyword (syntax)
Diffstat (limited to 'Test/dafny0/Simple.dfy')
-rw-r--r--Test/dafny0/Simple.dfy11
1 files changed, 11 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()
+}