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'