Page MenuHomeFeedback Tracker

Enfusion vm bug, but I'm not 100% sure
Awaiting internal Testing, NormalPublic

Description

ref array<string> testStringArray = {"one", "two", "three", "four", "five"};

void main()
{
    Test();
}

void Test()
{
    SomeTestClass a = new SomeTestClassB(testStringArray[0]);
}

class SomeTestClass
{
	void SomeTestClass()
	{
		FirstMethod();
	}

	void FirstMethod()
	{
		string temp = testStringArray[1];
		temp = testStringArray[2];
	}
}

class SomeTestClassB : SomeTestClass
{
	void SomeTestClassB(string data)
	{
		SecondMethod(data);
	}

	void SecondMethod(string data)
	{
		Print("data: "+ data); // output 'three'
	}
}

The Second Method prints 'three' but I expect 'one'

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Armor created this task.Jan 27 2025, 7:27 PM
Geez changed the task status from New to Awaiting internal Testing.Jan 29 2025, 11:07 AM