[mcs] Consider method candidates with misplaced named arguments not applicable. Fixes...
[mono.git] / mcs / errors / cs0027.cs
1 // CS0027: Keyword `this' is not available in the current context
2 // Line: 7 
3
4 using System;
5
6 class Error0027 {
7         int i = this.x;
8         int x = 0;
9         
10         public static void Main () {
11                 Console.WriteLine ("The compiler should complain: Error CS0027 trying to use 'this' outside context.");
12                 Console.WriteLine ("Trying to assign i to 'this.x' outside a method, property or ctr.");
13         }
14 }
15