diff options
author | flywind <xzsflywind@gmail.com> | 2022-01-04 20:29:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 13:29:50 +0100 |
commit | 9df195ef581879cf9e5c3c3154755bd1dba677c6 (patch) | |
tree | 71dc955a6976558b3cb47f98443093b388c1ce36 /tests/cpp | |
parent | 1869826668e2e3a0fd69cc1b69fb12b07993e417 (diff) | |
download | Nim-9df195ef581879cf9e5c3c3154755bd1dba677c6.tar.gz |
style usages part one (openarray => openArray) (#19321)
* style usages (openArray) * revert doc changes
Diffstat (limited to 'tests/cpp')
-rw-r--r-- | tests/cpp/tcovariancerules.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cpp/tcovariancerules.nim b/tests/cpp/tcovariancerules.nim index 5ac7d8bac..9d49f2cbd 100644 --- a/tests/cpp/tcovariancerules.nim +++ b/tests/cpp/tcovariancerules.nim @@ -79,16 +79,16 @@ proc wantsCovariantSeq2(s: seq[AnimalRef]) = proc wantsCovariantSeq3(s: seq[RefAlias[Animal]]) = for a in s: echo a.x -proc wantsCovariantOpenArray(s: openarray[ref Animal]) = +proc wantsCovariantOpenArray(s: openArray[ref Animal]) = for a in s: echo a.x -proc modifiesCovariantOpenArray(s: var openarray[ref Animal]) = +proc modifiesCovariantOpenArray(s: var openArray[ref Animal]) = for a in s: echo a.x -proc modifiesDerivedOpenArray(s: var openarray[ref Dog]) = +proc modifiesDerivedOpenArray(s: var openArray[ref Dog]) = for a in s: echo a.x -proc wantsNonCovariantOpenArray(s: openarray[Animal]) = +proc wantsNonCovariantOpenArray(s: openArray[Animal]) = for a in s: echo a.x proc wantsCovariantArray(s: array[2, ref Animal]) = |