bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Accessing global with prepended dot (.myVar) not possible

Open GWRon opened this issue 5 years ago • 3 comments

this works as (designed) in "legacy" but no longer in NG:

SuperStrict
Framework Brl.StandardIO


Type Test
	Field s:String
End Type

Global testA:Test = New Test
testA.s = "Hello"


Function PrintText()
	Local testA:Test = New Test
	testA.s = "World"
	Print (.testA.s)
	Print (testA.s)
End Function


PrintText()

output:

Compile Error: Expression of type 'Test' cannot be invoked.

GWRon avatar Jul 02 '19 12:07 GWRon