"does not name a type" error when I have multiple *.ino files and ALL of the code is moved into one

This applies only to local libraries, right? Not those installed from Arduino IDE, which are kind of "global".