From a296f091e456b706dab52916da4ad73f308a2345 Mon Sep 17 00:00:00 2001 From: Lolo Iccl Date: Thu, 19 Jan 2017 05:04:03 +0900 Subject: Fixes #5225 (#5243) * Fixes #5225 * Fixes #5225 * Fixes #5225 fix typo --- tests/template/tprocparshadow.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/template/tprocparshadow.nim (limited to 'tests/template') diff --git a/tests/template/tprocparshadow.nim b/tests/template/tprocparshadow.nim new file mode 100644 index 000000000..b99cd0b6c --- /dev/null +++ b/tests/template/tprocparshadow.nim @@ -0,0 +1,11 @@ +discard """ + output: "10" +""" + +template something(name: untyped) = + proc name(x: int) = + var x = x # this one should not be rejected by the compiler (#5225) + echo x + +something(what) +what(10) -- cgit 1.4.1-2-gfad0 tion value='devel' selected='selected'>devel This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/install.sh
blob: eed9f33e55bad223558c12f9301d94fad3e73899 (plain) (tree)