X-Sharp/XSharpPublic

/enforceself compiler option is being ignored

Closed this issue · 1 comments

Following code does not produce any compiler error about the missing SELF keywords:

#pragma options (enforceself, on)

CLASS TestClass
	PROTECT n AS INT
	EXPORT o AS OBJECT
	CONSTRUCTOR()
		? o == NULL
	RETURN
	
	METHOD Test() AS VOID
		n := 1
		? n
		? TestProperty
	RETURN
	PROPERTY TestProperty AS INT GET n
END CLASS

Confirmed fixed