Warning for structures with names like types

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Captn. Jinguji
User
User
Posts: 94
Joined: Sun Oct 24, 2004 9:25 am

Warning for structures with names like types

Post by Captn. Jinguji »

Structure a
first.s
second.s
EndStructure

Define X.a
x\first = "1"


Since 4.40, this - of course - throws an error, but at line 7 rather than line 1. I would rather the error - or possibly at least a warning - be issued for line 1, even if new type designators are introduced rarely into PB.
Is this an artifact or should it be disposed of ?