Calling `containsRef` manually shows the issue:
    
    
    proc containsRef(t: object or tuple): bool =
      typeit(t, {titAllFields}):
        if containsRef(it):
          return true
      false
    
    
    Run

Attempts to access a field that depends on the kind:
    
    
    proc containsRef(t: object or tuple): bool =
      typeit(t, {titAllFields}):
        if containsRef(typeof it):
          return true
      false
    
    
    Run

Resolves that. 

Reply via email to