mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
* fixes #20900; Calling template through from generic function across module fails to build * sanother way
12 lines
158 B
Nim
12 lines
158 B
Nim
type
|
|
Noice* = object
|
|
hidden: int
|
|
|
|
template jjj*: Noice =
|
|
Noice(hidden: 15)
|
|
|
|
type Opt* = object
|
|
o: int
|
|
|
|
template none*(O: type Opt): Opt = Opt(o: 0)
|