summary refs log tree commit diff stats
path: root/tests/parser/tcommandindent.nim
blob: 449c218dbd9248a8d98de6f1bce053f49c91d9bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
when false: # parse the following
  let foo = Obj(
    field1: proc (src: pointer, srcLen: Natural)
                    {.nimcall, gcsafe, raises: [IOError, Defect].} =
      var file = FileOutputStream(s).file

      implementWrites s.buffers, src, srcLen, "FILE",
                      writeStartAddr, writeLen,
        file.writeBuffer(writeStartAddr, writeLen)
    ,
    field2: proc {.nimcall, gcsafe, raises: [IOError, Defect].} =
      flushFile FileOutputStream(s).file
    ,
    field3: proc () {.nimcall, gcsafe, raises: [IOError, Defect].} =
      close FileOutputStream(s).file
  )