mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +00:00
14 lines
230 B
Nim
14 lines
230 B
Nim
type
|
|
SomeObj = object of RootObj
|
|
|
|
Foo[T, U] = object
|
|
x: T
|
|
y: U
|
|
|
|
template someTemplate[T](): tuple[id: int32, obj: T] =
|
|
var result: tuple[id: int32, obj: T] = (0'i32, T())
|
|
result
|
|
|
|
let ret = someTemplate[SomeObj]()
|
|
|