typedef int int1; array<int> arr = new array<int1>(); //Compile error - Types 'array<int1>' and 'array<int>' are unrelated
:(
typedef int int1; array<int> arr = new array<int1>(); //Compile error - Types 'array<int1>' and 'array<int>' are unrelated
:(
Is this how it is intended that the data type and its alias are unrelated to each other?
more examples:
typedef int int1; typedef int int2; typedef int int3; typedef int int4; typedef string myString; // Case 1 map<int1, int2> myMap = new map<int3, int4>(); // Compile Error - Types 'map<int3,int4>' and 'map<int1,int2>' are unrelated //Case 2 Param1<int1> p = new Param1<int2>(1); // Compile Error - Types 'Param1<int2>' and 'Param1<int1>' are unrelated //Case 3 myString inputStr = ""; GetGame().ConfigGetText("whatever", inputStr); //Compile Error - Cannot convert 'myString' to 'string' for argument '1' to method 'ConfigGetText'
but my custom function works fine
myString inputStr = ""; GetSomeValueChecked(inputStr); // no errors bool GetSomeValueChecked(out string str) { str = "some data"; return true; }