Co-authored-by: cooldome <ariabushenko@bk.ru>
This commit is contained in:
parent
95fd8ae93c
commit
f86fc5316a
3 changed files with 46 additions and 24 deletions
|
|
@ -335,3 +335,14 @@ ProcDef
|
|||
|
||||
static: assert bar("x") == "x"
|
||||
|
||||
#------------------------------------------------------
|
||||
# issue #13909
|
||||
|
||||
template dependency*(id: string, weight = 0.0) {.pragma.}
|
||||
|
||||
type
|
||||
MyObject* = object
|
||||
provider*: proc(obj: string): pointer {.dependency("Data/" & obj, 16.1), noSideEffect.}
|
||||
|
||||
proc myproc(obj: string): string {.dependency("Data/" & obj, 16.1).} =
|
||||
result = obj
|
||||
Loading…
Add table
Add a link
Reference in a new issue