diff options
Diffstat (limited to 'mcs/tests/test-named-09.cs')
-rw-r--r-- | mcs/tests/test-named-09.cs | 16 |
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 |