summary refs log tree commit diff stats
path: root/tests/proc/tnamedparams2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/proc/tnamedparams2.nim')
-rw-r--r--tests/proc/tnamedparams2.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/proc/tnamedparams2.nim b/tests/proc/tnamedparams2.nim
new file mode 100644
index 000000000..9acdeed87
--- /dev/null
+++ b/tests/proc/tnamedparams2.nim
@@ -0,0 +1,15 @@
+import pegs
+
+discard parsePeg(
+      pattern = "input",
+      filename = "filename",
+      line = 1,
+      col = 23)
+
+# bug #12196
+type
+  Renderer = object
+
+var xs0, x0, xs1, x1: int
+proc init(xs=xs0; x=x0; renderer: Renderer; r: byte) = discard
+init(xs=xs1, x=x1, r=3, renderer=Renderer())