linux-packaging-mono/mcs/tests/test-null-operator-20.cs
Xamarin Public Jenkins 8cb7d04924 Imported Upstream version 4.2.2.10
Former-commit-id: 925376e1db46149d14f7949fcd7b08805ea8aba9
2015-12-18 19:40:30 -05:00

14 lines
245 B
C#

class M
{
public static void Main ()
{
string s = null;
s?.CompareTo ("xx").CompareTo(s?.EndsWith ("x")).GetHashCode ();
string s1 = "abcd";
string s2 = null;
var idx = s1.Substring(1)[s2?.GetHashCode () ?? 0].GetHashCode ();
}
}