Cut the squash into pieces about the same size as the potatoes. Put the potatoes in a pan and add water to cover, with the sugar and salt. Bring to the boil, then simmer for about 10 minutes, until almost tender. Add the squash and continue to cook until the vegetables are just tender, then drain.