[mcs] Add expression bodied syntax for accessors. Fixes #54991
[mono.git] / mcs / errors / cs0184-4.cs
1 // CS0184: The given expression is never of the provided (`B') type
2 // Line: 9
3 // Compiler options: -warnaserror -warn:1
4
5 class B
6 {
7         static void Foo ()
8         {
9                 if (1 is B) {
10                 }
11         }
12 }