Bug? No warning of duplicate Process Global variables

Status
Not open for further replies.

JohnC

Expert
Licensed User
Longtime User
I had this line in the Main Activity's Process_Globals and in a Service's Process_Globals. It caused a weird/random scoping error that took a while to figure out that I had accidently duplicated this line:

B4X:
Sub Process_Globals

    Dim exo As SimpleExoPlayerView

End Sub

I'm thinking it would be helpful if the compiler could report a warning (or display a red wavy underline for each instance during edit mode) if it sees duplicate declared global variables.

NOTE: I am using B4A v9.01
 
Last edited:
Status
Not open for further replies.
Top