tmoduleclash1.nim 276 B

1234567891011121314
  1. # issue #23596
  2. import std/heapqueue
  3. type Algo = enum heapqueue, quick
  4. when false:
  5. let x = heapqueue
  6. let y: Algo = heapqueue
  7. proc bar*(algo=quick) =
  8. var x: HeapQueue[int]
  9. case algo
  10. of heapqueue: echo 1 # `Algo.heapqueue` works on devel
  11. of quick: echo 2
  12. echo x.len