You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeGen[T] =refobject
field: T
macronoop*(prc: typed) = prc
procgen[T](g: T): T {.noop.} = g
procgenObj[T](g: Gen[T]): T {.noop.} = g.field
Current Output
/tmp/test.nim(8, 22) Error: cannot instantiate Gen [type declared in /tmp/test.nim(1, 6)]
got: <T>
but expected: <T>
gen works, but not genObj
$ nim -v
Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2022-01-10
Copyright (c) 2006-2021 by Andreas Rumpf
git hash: b098546da051ed026e85a9f398e74c396c79a8ad
Example
Current Output
gen
works, but notgenObj
Probably related to nim-lang/RFCs#44
The text was updated successfully, but these errors were encountered: