From 66a76d3165fba77b081f358dfa768b8a3203b7d8 Mon Sep 17 00:00:00 2001 From: Miran Date: Tue, 6 Nov 2018 18:33:58 +0100 Subject: Merge tests into a larger file (part 8 of ∞) (#9583) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * merge tuple tests * merge trmacros tests * merge template tests --- tests/template/tprocparshadow.nim | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 tests/template/tprocparshadow.nim (limited to 'tests/template/tprocparshadow.nim') diff --git a/tests/template/tprocparshadow.nim b/tests/template/tprocparshadow.nim deleted file mode 100644 index de1c2d941..000000000 --- a/tests/template/tprocparshadow.nim +++ /dev/null @@ -1,30 +0,0 @@ -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) - -# bug #4750 - -type - O = object - i: int - - OP = ptr O - -template alf(p: pointer): untyped = - cast[OP](p) - - -proc t1(al: pointer) = - var o = alf(al) - -proc t2(alf: pointer) = - var x = alf - var o = alf(x) -- cgit 1.4.1-2-gfad0