1234567891011121314151617 |
- {.experimental: "genericsOpenSym".}
- 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"
|