summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-09-16 09:57:11 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-09-16 12:12:44 +0200
commit6c487a6309fd674f3084205c1b4b4353c7847f51 (patch)
tree2af278c1c90853471c8eda22e8dd26167660b9a2 /tests
parent8b4c17a1404b256857ae9a90ac0ceaa2940109c2 (diff)
downloadNim-6c487a6309fd674f3084205c1b4b4353c7847f51.tar.gz
fixes #12196
Diffstat (limited to 'tests')
-rw-r--r--tests/namedparams/tnamedparams2.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/namedparams/tnamedparams2.nim b/tests/namedparams/tnamedparams2.nim
index fcbbd32da..9acdeed87 100644
--- a/tests/namedparams/tnamedparams2.nim
+++ b/tests/namedparams/tnamedparams2.nim
@@ -6,3 +6,10 @@ discard parsePeg(
       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())
href='#n140'>140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232