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:
Diffstat (limited to 'mcs/errors/cs8084.cs')
-rw-r--r--mcs/errors/cs8084.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs8084.cs b/mcs/errors/cs8084.cs
new file mode 100644
index 00000000000..c5861b515f6
--- /dev/null
+++ b/mcs/errors/cs8084.cs
@@ -0,0 +1,14 @@
+// CS8084: An argument to nameof operator cannot be method group with type arguments
+// Line: 12
+
+static class C
+{
+ static void Foo<T> ()
+ {
+ }
+
+ static void Main ()
+ {
+ string s = nameof (Foo<int>);
+ }
+} \ No newline at end of file