From fe9a37f2a57d0e76984b25c3dfe0fbdc94a30d9e Mon Sep 17 00:00:00 2001 From: flywind Date: Thu, 1 Apr 2021 02:55:27 +0800 Subject: [PATCH] close #12684 add testcase (#17599) --- tests/compiler/t12684.nim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/compiler/t12684.nim diff --git a/tests/compiler/t12684.nim b/tests/compiler/t12684.nim new file mode 100644 index 0000000000..a5f33d2c90 --- /dev/null +++ b/tests/compiler/t12684.nim @@ -0,0 +1,7 @@ +discard """ + cmd: "nim check --hints:off --warnings:off $file" + errormsg: "undeclared identifier: 'Undeclared'" +""" + +var x: Undeclared +import compiler/nimeval