mopensymimport2.nim 263 B

1234567891011121314151617
  1. {.experimental: "openSym".}
  2. import mopensymimport1
  3. type Xxx = enum
  4. error
  5. value
  6. proc f(): Result[int, cstring] =
  7. Result[int, cstring](oResultPrivate: false, eResultPrivate: "f")
  8. proc g*(T: type): string =
  9. let x = f().valueOr:
  10. return $error
  11. "ok"