I don't know if you consider this a bug but I'll list it anyway as it's not the behaviour I expected
In the following code
type mytype
myvar1
myvar2
my var 3
endtype
Instead of the compiler erroring and pointing to the line "my var 3", it just reports a syntax error pointing at the line "type mytype".
Admittedly there is a syntax error within the type that it's pointing at the start of, but I would have expected the compiler to either say syntax error and point at the correct line, or give a more descriptive error message to suggest that there may be a fault with one of the members of the type.
I spent a while trying to work out if the "type mytype" line had a hidden character on it, or if there was a problem with the previous code block. Seeing I have about 30 members in my type it took me a while to realise that one of the ones off the screen was at fault.
right. errors in types are a bit awkward in the compiler, still.
Is it possible then to make the error say "syntax error - possible error within type" or something similar? Just a thought!
It points you to the TYPE declatation line, so it's correct. There's a syntax error in the type.
Fair enough!