type MyRef = ref object myProp: int proc doSmt(mr: MyRef) = mr.myProp = 5 let a = MyRef(myProp: 10) doSmT a echo repr(a)