Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2014-12-04 16:18:18 +0300
committerMarek Safar <marek.safar@gmail.com>2014-12-04 16:18:18 +0300
commit336755ca9edfbb0dd5c395f59a398c76449f7fdc (patch)
treee141ff97fdb10097cb0d3a8de04b8057fbda88a5 /mcs/tests/test-named-09.cs
parentb50017eba3a83ecbb495f4c698531696df043b78 (diff)
[mcs] Validate more nameof argument expressions
Diffstat (limited to 'mcs/tests/test-named-09.cs')
-rw-r--r--mcs/tests/test-named-09.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/test-named-09.cs b/mcs/tests/test-named-09.cs
new file mode 100644
index 00000000000..a44dca3a154
--- /dev/null
+++ b/mcs/tests/test-named-09.cs
@@ -0,0 +1,16 @@
+using System.Collections.Generic;
+
+class X
+{
+ public static int Main ()
+ {
+ switch (nameof (Dictionary<int,int>.Add)) {
+ case nameof (List<int>.Equals):
+ return 1;
+ case nameof(List<int>.Add):
+ return 0;
+ default:
+ return 2;
+ }
+ }
+} \ No newline at end of file