summary refs log tree commit diff stats
path: root/tests/sandwich/generic_library.nim
blob: 43e7bd65f2901b14af7e6932be38f6dc5e5fbb79 (plain) (blame)
1
2
3
4
5
6
proc libraryFunc*[T](x: T) =
  mixin mixedIn, indirectlyMixedIn
  echo mixedIn()
  echo indirectlyMixedIn()
{.experimental: "strictDefs".} let global {.used.}: int proc foo() = block: let x: int x = 13 x = 14 block: let x: int doAssert x == 0 foo()