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/importme.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/deprecated/importme.nim (limited to 'tests/deprecated/importme.nim') diff --git a/tests/deprecated/importme.nim b/tests/deprecated/importme.nim new file mode 100644 index 000000000..0a9c6e37d --- /dev/null +++ b/tests/deprecated/importme.nim @@ -0,0 +1,10 @@ +type + Ty* {.deprecated.} = uint32 + Ty1* {.deprecated: "hello".} = uint32 + +var aVar* {.deprecated.}: char + +proc aProc*() {.deprecated.} = discard +proc aProc1*() {.deprecated: "hello".} = discard + +{.deprecated: "goodbye".} -- cgit 1.4.1-2-gfad0