Literal[a, b] cannot be implemented in Nim's type system (i.e. via type Literal[...)
Procs
proc parseDeclWithType(def: NimNode): tuple[name, typ, val: NimNode] {. ...raises: [], tags: [], forbids: [].}
- a: int -> a int <EmptyNode> a: int = 1 -> a int 1 Source Edit
proc rewriteDeclInStmtAux(variable, oriTyp, val: NimNode; typId = oriTyp.ensureType): NimNode {....raises: [], tags: [], forbids: [].}
- Source Edit