https://irclogs.nim-lang.org/05-12-2018.html#02:56:15
masquino, to your unanswered irc question I remembered a recent post of Mr Hlaaftana:
https://forum.nim-lang.org/t/4199#26158
So this works:
type
Something = object of RootObj
proc fun1(_: typedesc[Something], x: int): int = x * 2
proc fun2(_: typedesc[Something]): int = 7
echo Something.fun1(3)
echo Something.fun2