mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 02:12:11 +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)
|