mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-12 04:09:34 +00:00
10 lines
260 B
Nim
10 lines
260 B
Nim
# Calls `emptyOwned` from a DIFFERENT module than the one that owns it, so the
|
|
# reference at link time must resolve to a definition the owning module emits.
|
|
|
|
import memptyowned
|
|
|
|
proc callEmpty*(cond: bool) =
|
|
if cond:
|
|
emptyOwned()
|
|
echo "called ", cond
|