Pokemon sun and moon have more pokemon data slots then there are in the game so if you injected a pokemon over 810 it would show up as a gen 8 pokemon when you move it from the game to pokebank. i tested this by injecting a sun and moon pokemon into oras then putting it in poke bank and it was the gen 7 mon.