Why does this code raise a syntax error (Does it in B4A, too. So it is consistent)?
B4X:
Sub Process_Globals
Type MyType (test As String)
Private gVariable As MyType
End Sub
Sub AppStart (Args() As String)
GetVariable.Initialize
GetVariable.test = "Test"
End Sub
Public Sub GetVariable As MyType
Return gVariable
End Sub
The syntax error is on line "GetVariable.test = "Test"