remove {.this.} pragma, deprecated since 0.19 (#20201)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
3dbf2ac946
commit
f6eb1d4d7d
13 changed files with 28 additions and 158 deletions
|
|
@ -1,20 +0,0 @@
|
|||
discard """
|
||||
action: compile
|
||||
"""
|
||||
|
||||
# bug #4671
|
||||
{.experimental.}
|
||||
{.this: self.}
|
||||
type
|
||||
SomeObj = object
|
||||
f: int
|
||||
|
||||
proc f(num: int) =
|
||||
discard
|
||||
|
||||
var intptr: ptr int
|
||||
intptr.f() # compiles fine
|
||||
|
||||
proc doSomething(self: var SomeObj) =
|
||||
var pint: ptr int
|
||||
pint.f() # Error: expression '.(pint, "f")' cannot be called
|
||||
Loading…
Add table
Add a link
Reference in a new issue