ID:2539643
 
BYOND Version:512
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 79.0.3945.130
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
If you do __FILE__ on the very last line (without a trailing newline) of a file, it returns the filename of the #include statement that included the file instead.

Numbered Steps to Reproduce Problem:
1. make a .dm file
2. put something that uses __FILE__ on the last line
3. include it

Code Snippet (if applicable) to Reproduce Problem:


Expected Results:
it shows the filename of the file

Actual Results:
it shows the filename of the file that included it

Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?

When does the problem NOT occur?
when there's a trailing newline or its not on the last line

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Workarounds:
dont put it on the last line I guess
This is actually a limitation that shows up elsewhere too, say, if you have an error on the last line of a file.