# Module b import a proc doThing(myType: MyType) = echo myType # Module a type MyType = object x, y z: int import b doThing(MyType(x: 100, y: 200, z: 10))