projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not remap framework assembly if it's version is higher than the runtime version
[mono.git]
/
mcs
/
tests
/
test-null-operator-05.cs
diff --git
a/mcs/tests/test-null-operator-05.cs
b/mcs/tests/test-null-operator-05.cs
index 5fa5c6ff9b4ee213e5cf6d08f1cd88dbb6101ca6..ecbc6019059105b87a997e1ee08f830545102d92 100644
(file)
--- a/
mcs/tests/test-null-operator-05.cs
+++ b/
mcs/tests/test-null-operator-05.cs
@@
-20,6
+20,15
@@
class C
if (v2 != null)
return 2;
if (v2 != null)
return 2;
+ var v3 = arr? [0].GetHashCode () ?? 724;
+ if (v3 != 724)
+ return 3;
+
+ string[] ar3 = null;
+ var v4 = ar3?[0].Length;
+ if (v4 != null)
+ return 4;
+
// TODO: Disabled for now?
// arr? [0] += 2;
return 0;
// TODO: Disabled for now?
// arr? [0] += 2;
return 0;
@@
-36,6
+45,10
@@
class C
if (v2 != null)
return 2;
if (v2 != null)
return 2;
+ var v3 = ci? [0].GetHashCode () ?? 724;
+ if (v3 != 724)
+ return 3;
+
// TODO: Disabled for now?
// ci? [0] += 3;
return 0;
// TODO: Disabled for now?
// ci? [0] += 3;
return 0;