remove {.this.} pragma, deprecated since 0.19 (#20201)

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
metagn 2022-08-23 20:44:37 +03:00 • committed by GitHub
commit f6eb1d4d7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 28 additions and 158 deletions

View file

@ -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