Does your field not look something like this?
    
    
    type Foo = object
      `type`: int
    
    
    Run

If this doesn't work, I believe this should:
    
    
    type Foo = object
      typeField {.importc: "type".}: int
    
    
    Run

Reply via email to