ringabout
ringabout
@juancarlospaco Hi, sorry for the delay. PR is welcome to remove these options. ref https://github.com/nim-lang/website/pull/380#discussion_r1354307693
!nim c ```nim import std/atomics type R [L: static int] = range[0..L] Q [L: static int] = object v: Atomic[R[L]] proc f[L: static int](q: Q[L]): void = discard var q:...
Reduced ```nim type R[C] = ref object b: typedesc[int] discard R[int]() ```
related: https://github.com/nim-lang/Nim/issues/15607
See also https://github.com/nim-lang/Nim/issues/23162 https://github.com/nim-lang/Nim/pull/23163
Reduced ```nim # test.nim type S*[T] = ref object of RootObj k: string A*[T] = ref object of S[T] proc p*[T](): S[T] = S[T]() discard A[int]() ``` ```nim # main.nim...
It seems to be a bug of https://github.com/jangko/nim-noise/pull/35
fyi, reinstall inim and its deps (remove `noise` and reinstall it) works too
@Araq Can you explain how to use `appType == "lib"` to make the example work?
!nim c --gc:refc ```nim proc w(_: int): bool = discard proc b() = template m(c: int) = if w(c): discard w(c) m((; let _ = 0; if true: 0 else:...