From cf20c4460c5b495a97b3f1f1d091f77832b89384 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Tue, 21 Aug 2018 15:07:44 +0200 Subject: More robust handling of deprecated pragmas (#8696) Prevent `deprecated` annotations to "slip" up to the parent module and warn about unsupported annotations. Accidentally fixes #7867 --- tests/deprecated/tmodule1.nim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/deprecated/tmodule1.nim (limited to 'tests/deprecated/tmodule1.nim') diff --git a/tests/deprecated/tmodule1.nim b/tests/deprecated/tmodule1.nim new file mode 100644 index 000000000..954836889 --- /dev/null +++ b/tests/deprecated/tmodule1.nim @@ -0,0 +1,23 @@ +discard """ + nimout: '''tmodule1.nim(11, 8) Warning: goodbye; importme is deprecated [Deprecated] +tmodule1.nim(14, 10) Warning: Ty is deprecated [Deprecated] +tmodule1.nim(17, 10) Warning: hello; Ty1 is deprecated [Deprecated] +tmodule1.nim(20, 8) Warning: aVar is deprecated [Deprecated] +tmodule1.nim(22, 3) Warning: aProc is deprecated [Deprecated] +tmodule1.nim(23, 3) Warning: hello; aProc1 is deprecated [Deprecated] +''' +""" + +import importme + +block: + var z: Ty + z = 0 +block: + var z: Ty1 + z = 0 +block: + echo aVar +block: + aProc() + aProc1() -- cgit 1.4.1-2-gfad0 Nim/log/security.md?h=devel'>log tree commit diff stats
path: root/security.md
blob: 72a1a3e3d630ba525f34a94f73edb1a0f587660c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20