Typestate usually errors out when this happens, but the message is confusing. This should be picked up in resolve.