summary refs log tree commit diff stats
path: root/tests/template/tprocparshadow.nim
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2018-11-06 18:33:58 +0100
committerArne Döring <arne.doering@gmx.net>2018-11-06 18:33:58 +0100
commit66a76d3165fba77b081f358dfa768b8a3203b7d8 (patch)
tree3245dafcb8746e023b678909c1cb36534562265d /tests/template/tprocparshadow.nim
parentc735b75f6f9aa83d525c1cb819c8e6d83badc447 (diff)
downloadNim-66a76d3165fba77b081f358dfa768b8a3203b7d8.tar.gz
Merge tests into a larger file (part 8 of ∞) (#9583)
* merge tuple tests

* merge trmacros tests

* merge template tests
Diffstat (limited to 'tests/template/tprocparshadow.nim')
-rw-r--r--tests/template/tprocparshadow.nim30
1 files changed, 0 insertions, 30 deletions
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)