From 91c4d57eb84d5d15e011902a1da1b70131e5a222 Mon Sep 17 00:00:00 2001 From: leino Date: Fri, 12 Dec 2014 20:46:48 -0800 Subject: Language change: All functions and methods declared lexically outside any class are now automatically static, and fields are no longer allowed to be declared there. Stated differently, all heap state must now be declared inside an explicitly declared class, and functions and methods declared outside any class can be viewed as belonging to the module. The motivating benefit of this change is to no longer need the 'static' keyword when declaring a module of functions and methods. --- Test/vacid0/SparseArray.dfy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Test/vacid0') diff --git a/Test/vacid0/SparseArray.dfy b/Test/vacid0/SparseArray.dfy index 1e54f02f..e9280a9a 100644 --- a/Test/vacid0/SparseArray.dfy +++ b/Test/vacid0/SparseArray.dfy @@ -104,7 +104,7 @@ class SparseArray { } /* The following method is here only to simulate support of arrays in Dafny */ -/*private*/ static method AllocateArray(n: int) returns (arr: seq) +/*private*/ method AllocateArray(n: int) returns (arr: seq) requires 0 <= n; ensures |arr| == n; { -- cgit v1.2.3