Note that this can never occur in a spacetime which is homeomorphic to R, which is a contractible space. However, for Kaluza–Klein theories, the Scherk–Schwarz mechanism is a possibility which can't be neglected.