Nullable types

I see a strange behavior with nullable types. For example:



Guid? g;

if(g != null)

{

}



R# marks g!=null as error (Can not apply operator != to operands of type
Guid? and null)



Regards.


2 comments
Comment actions Permalink

Could you please submit this bug into the tracker?

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I see a strange behavior with nullable types. For example:

Guid? g;

if(g != null)

{

}

R# marks g!=null as error (Can not apply operator != to operands of
type Guid? and null)

Regards.



0
Comment actions Permalink

Could you please submit this bug into the tracker?

done.


0

Please sign in to leave a comment.