proc doThing(t: object) = echo "huh" type MyType = object proc doThing(myType: MyType) = echo "heh" MyType().doThing() MyType().doThing[: MyType]()