Bizarre enough, the following seems to work: 
    
    
    #module A
    
    static:
      var test=0
    
    proc test_proc(): void {.discardable,compileTime.} =
      var a = test
      echo a
    
    static:
      test_proc()
    
    
    
    #module B
    
    import A
    
    static:
      test_proc()
    

Reply via email to