I have the macro that produces const arrays, unfortunately when array comes out 
of macro as empty, it doesn't compile:
    
    
    const required_fields: array[0, tuple[f1: int, f2: string]] = []
    
    

Compiler complains: 
    
    
    Error: type mismatch: got (array[0..-1, empty]) but expected 'array[0..-1, 
tuple[f1: string, f2: stri
    ng]]'
    

Any quick hack I can use to make it work?

Reply via email to