blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Elvis operator: Error message doesn't contain filename #47

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: engor

Look at this simple example:

Namespace myapp

#Import "<std>"

Using std..

Function Main()

    Local t:Test
    t.Load()
    t?.Save() ' here error don't show filename
End

Class Test
End

And look at output errors:

Parsing...
Semanting...
C:/proj/monkey2/monkey2fork/tmp/untitled1.monkey2 [11] : Error : Value of type 'myapp.Test' has no member named 'Load'
????? [12] : Error : Value of type 'myapp.Test' has no member named 'Save'

The second error line has "?????" instead of filename, and IDE can't jump to it.