1234567891011121314151617 |
- {.experimental: "openSym".}
- import mopensymimport1
- type Xxx = enum
- error
- value
- proc f(): Result[int, cstring] =
- Result[int, cstring](oResultPrivate: false, eResultPrivate: "f")
- proc g*(T: type): string =
- let x = f().valueOr:
- return $error
- "ok"
|