2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0027.cs
blobf8bcc337dc309bb013d0ff9d71e3d0e39dd3d0d6
1 // cs0027.cs: Keyword `this' is not available in the current context
2 // Line: 7
4 using System;
6 class Error0027 {
7 int i = this.x;
8 int x = 0;
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.");