Currently, method overloading doesn't work. To support, method numbering would help, e.g. (extending the example in #73):
public struct SimpleConstructedStruct
{
public readonly float OutFloat;
public SimpleConstructedStruct(float outFloat)
{
OutFloat = outFloat;
}
public SimpleConstructedStruct Increment()
{
return new SimpleConstructedStruct (OutFloat + 1.0f);
}
public SimpleConstructedStruct Increment(float amount)
{
return new SimpleConstructedStruct (OutFloat + amount);
}
}
...
SimpleConstructedStruct s = new SimpleConstructedStruct(1.0f);
s = s.SimpleConstructedStruct();
s = s.SimpleConstructedStruct(1.0f);
Currently, method overloading doesn't work. To support, method numbering would help, e.g. (extending the example in #73):
Should be written as: