closes #4750
This commit is contained in:
parent
ef771cde1a
commit
9e48999567
1 changed files with 19 additions and 0 deletions
|
|
@ -9,3 +9,22 @@ template something(name: untyped) =
|
|||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue