 doesn't compile in Xamarin Studio 5.9 (Mono 4.0.0 C# compiler):
The code compiles fine in VS2015RC
However, the following compiles fine in Xamarin Studio:
public class MyClass
{
Type Type { get; set; } // Adding a setter makes it work
public MyClass()
{
Type = typeof(string);
}
}
This also compiles fine:
public class MyClass
{
Type Type1 { get; } // changing the name to Type1 makes it work
public MyClass()
{
Type1 = typeof(string);
}
}
Fixed in master
*** Bug 30419 has been marked as a duplicate of this bug. ***
What release will this fix be in?
The fix is available in Mono 4.2
When will that be released? I checked Beta and Alpha channels and they are both 4.0.x.
Sorry, I should be more specific. When will this fix (and the other C# 6 language feature bugs) be available in Xamarin.iOS and Xamarin.Android.