Creating a flat world and dig straight down to bedrock (but not actually break bedrock) will create invisible "Roof barriers" on top of you after you destroyed the 3rd and final layer of dirt, meaning you can't go up while you are in Survival or Creative. The only way to get through the invisible roof barrier is to either use Ender Pearls, Chorus Fruit, etc.
Thank you for your report!
We're actually already tracking this issue at MCPE-43601, so we will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.