mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* fixes #11225; generic sandwich problems; [backport:1.2] * progress * delegating these symbols must be done via 'bind'
13 lines
198 B
Nim
13 lines
198 B
Nim
|
|
import
|
|
generic_library, helper_module
|
|
|
|
proc mixedIn: int = 100
|
|
|
|
proc makeUseOfLibrary*[T](x: T) =
|
|
bind mixedIn, indirectlyMixedIn
|
|
libraryFunc(x)
|
|
|
|
when isMainModule:
|
|
makeUseOfLibrary "test"
|