Heat oil in a large fry pan over medium-high heat. Add onion and garlic and cook, stirring until soft. Add zucchini and chilli and cook until soft. Stir in corn and beans and heat through. Season with salt to taste.
If you can't find tinned black beans, use tinned kidney beans.