Merge pull request #303 from ermshiperete/5278
[mono.git] / mcs / class / Microsoft.Build.Engine / Microsoft.Build.BuildEngine / ConditionNotExpression.cs
index b76f5a5df22f8ab04d72ed6a955528bc1c597837..28d9292564e5bac94c99ecef3a1ccacda02fa870 100644 (file)
@@ -31,7 +31,7 @@ using System;
 using System.Xml;
 
 namespace Microsoft.Build.BuildEngine {
-       internal class ConditionNotExpression : ConditionExpression {
+       internal sealed class ConditionNotExpression : ConditionExpression {
        
                readonly ConditionExpression expression;
                
@@ -56,10 +56,9 @@ namespace Microsoft.Build.BuildEngine {
                        throw new NotSupportedException ();
                }
                
-               // FIXME: check if we really can do it
                public override bool CanEvaluateToBool (Project context)
                {
-                       return true;
+                       return expression.CanEvaluateToBool (context);
                }
                
                public override bool CanEvaluateToNumber (Project context)