Merge pull request #980 from StephenMcConnel/bug-18638
[mono.git] / mcs / errors / cs8082.cs
1 // CS8082: An argument to nameof operator cannot include sub-expression
2 // Line: 9
3
4 class C
5 {
6         void Foo ()
7         {
8                 object o = null;
9                 var s = nameof (o.ToString ().Equals);
10         }
11 }