fix affecting templates with explicit generic params

This commit is contained in:
Zahary Karadjov 2017-05-13 20:48:33 +03:00
commit 672c24e4b8
4 changed files with 23 additions and 30 deletions

View file

@ -0,0 +1,13 @@
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]()