My thought is if you have solid foods in your stomach before and while you go to sleep, your body tends to do two things.
which brings me to this. If you have food in your stomach, blood will be present to help with the digestion process. The problem with this is the blood will not be in the muscle tissue providing nutrients (from the day) to repair what you broke down in your workout.
So, if the blood is two different places then both processes (digestion and muscle repair) will not be 100% efficient.
What then happens?
You cant digest the food fully (notice how you have to use the bathroom in the morning! Why is it a different mass then during the day? Cause during the day more of the food is used)you will be wasting food and also storing FAT!
you will not be able to recover from workouts properly which in turn will lead to overtraining and possible set-backs from injury.
If you do take anything before sleep it should be easily digestable, low-glycemic protien powder, Magnesium (empty stomach)