2010-07-14 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / mcs / context.cs
index 006c66cb60cf72a175c595df8cc7b8486bf82c41..2d89d2b9a2eb03d42c3c9c42e6982e38deb9fb95 100644 (file)
@@ -402,15 +402,8 @@ namespace Mono.CSharp
                // TODO: Merge with CompilerGeneratedThis
                public Expression GetThis (Location loc)
                {
-                       This my_this;
-                       if (CurrentBlock != null)
-                               my_this = new This (CurrentBlock, loc);
-                       else
-                               my_this = new This (loc);
-
-                       if (!my_this.ResolveBase (this))
-                               my_this = null;
-
+                       This my_this = new This (loc);
+                       my_this.ResolveBase (this);
                        return my_this;
                }