Skip to content

Problem with /fox3 when /fox2 is also enabled #2083

Description

@cpyrgas

Came across a problem with /fox3, which seems to surface only when /fox2 is also enabled. When /fox2 is disabled, following code works fine. When /fox2 is enabled, it throws a runtime error "Variable does not exist: TESTEXPORT"

#pragma options("fox2", enable)

#pragma options("fox3", enable)
#pragma options("allowdot", enable)
#pragma options("lb", enable)
#pragma options("memvar", enable)
#pragma options("undeclared", enable)

CLASS SeparateClass
	PROPERTY OtherProp AS INT AUTO
END CLASS

CLASS MainClass
	EXPORT TestExport := SeparateClass{} AS SeparateClass
	
	METHOD DoTest() AS VOID
		TestExport.OtherProp := 456
		? TestExport.OtherProp
END CLASS

FUNCTION Start( ) AS VOID
	MainClass{}:DoTest()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions