I believe the compiler error is because you are trying to access the todo attribute which does not exist for your object. if you do: DocItem(kind:TextDoc, text: "some doc").text Run
then it should compile fine.
I believe the compiler error is because you are trying to access the todo attribute which does not exist for your object. if you do: DocItem(kind:TextDoc, text: "some doc").text Run
then it should compile fine.