Hi!

I'm trying to use [] proc from typeinfo module to access object field byt name, 
but even the most basic code doesn't compile:
    
    
    import typeinfo
    
    type
      Foo = object
        field: int
    
    let foo = Foo(field: 123)
    
    echo foo.field      # works
    echo foo["field"]  # fails
    
    
    Run

Is it a bug to report or am I doing it wrong?

Reply via email to