what the title says is not exactly 
    
    
    type
        Index = enum
            idx1
            idx2
            idx3
    
    var index: array[Index, string]
    
    
    Run

is valid

but
    
    
    type
        Index = enum
            idx1
            idx2 = 5
            idx3
    
    var index: array[Index, string]
    
    
    Run

will not be compiled because "Error: ordinal type expected"

Reply via email to