From af39f26a3a8340fdfff7b86d7b2b3506e59cfc16 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 13 Jun 2019 10:42:37 +0200 Subject: [bugfix] nimpretty: fixes #11468 --- nimpretty/tests/expected/exhaustive.nim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nimpretty/tests/expected') diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim index 75580081d..6089c34c6 100644 --- a/nimpretty/tests/expected/exhaustive.nim +++ b/nimpretty/tests/expected/exhaustive.nim @@ -419,3 +419,11 @@ type ccFastCall, # fastcall (pass parameters in registers) ccClosure, # proc has a closure ccNoConvention # needed for generating proper C procs sometimes + + +proc isValid1*[A](s: HashSet[A]): bool {.deprecated: + "Deprecated since v0.20; sets are initialized by default".} = + ## Returns `true` if the set has been initialized (with `initHashSet proc + ## <#initHashSet,int>`_ or `init proc <#init,HashSet[A],int>`_). + result = s.data.len > 0 + # bug #11468 -- cgit 1.4.1-2-gfad0