consulo / consulo-unity3d

Frameworks: Unity3D
Apache License 2.0
103 stars 10 forks source link

Negating an object to test its nullity error #48

Closed mnandrei90 closed 8 years ago

mnandrei90 commented 8 years ago

For the lines of code below, the error appears at "if". var obj = null; if (!obj ) break;

The error message is: ! (p0:System.Boolean) cannot be applied to (p0:System.Boolean)

VISTALL commented 8 years ago

Hi. Thanks. Its regression

simple code

using UnityEngine;

public class RegressionTest
{
    public static void Main()
    {
        GameObject gameObject = null;

        if(!gameObject)
        {
            return;
        }
    }
}
VISTALL commented 8 years ago

Fixed. After one hour you need update C# plugin