Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negating an object to test its nullity error #48

Closed
mnandrei90 opened this issue Dec 7, 2015 · 2 comments
Closed

Negating an object to test its nullity error #48

mnandrei90 opened this issue Dec 7, 2015 · 2 comments

Comments

@mnandrei90
Copy link

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
Copy link
Member

VISTALL commented Dec 7, 2015

Hi. Thanks. Its regression

simple code

using UnityEngine;

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

        if(!gameObject)
        {
            return;
        }
    }
}

@VISTALL
Copy link
Member

VISTALL commented Dec 7, 2015

Fixed. After one hour you need update C# plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants