I'm currently living in the US on a visa that allows me to file (federally) as a non-resident. However, since I have lived in Massachusetts all year, I am a resident of Massachusetts and must file as a resident.
If I sell an apartment in a foreign country, do I have to pay tax on capital gains in Massachusetts? (I'm assuming I don't have to do anything on my federal return about foreign property because I'm a nonresident.)