Skip to content

Compiler allows using the dot for accessing instance members, even if /allowdot is not enabled #1109

@cpyrgas

Description

@cpyrgas

In the following code, the compiler reports an error for n.ToString(), but not for the other two cases where using the dot operator for accessing instance members. The /allowdot compiler option is disabled

FUNCTION Start() AS VOID
LOCAL n AS INT
n.ToString() // error, correct
TestClass{}.ToString() // no error

CLASS TestClass
CONSTRUCTOR()
SELF.ToString() // no error
END CLASS

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions