proc fac[N: static[int]](): int =
      when N == 1:
        1
      else:
        N * fac[N - 1]()
    
    const x5 = fac[5]()
    
    Run

Reply via email to