type Foo = object proc bar(f:Foo) = echo "bar" var f:Foo f.bar()