consulo / consulo-unity3d

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

Int and Int32 are being reported as incompatible for comparison #43

Closed MaDDoXbr closed 9 years ago

MaDDoXbr commented 9 years ago

Unity internally converts Int32 to Int when needed, making comparisons (<, =, >) of these two types compile and work fine. Nevertheless Consulo reports an incompatible-type error, as shown in the attached screenshot. For the record, if I int-cast the Int32 property the error goes away, but this shouldn't be needed.

int_vs_int32
VISTALL commented 9 years ago

Hi. Can you say your C# Plugin Version(you can get it in Plugin page).

Looks like https://github.com/consulo/consulo-csharp/issues/313 but it was fixed in a week ago

MaDDoXbr commented 9 years ago

Updating the plugin worked out that issue indeed, thanks - but another showed up, in property int getters. This wasn't showing as an error previously.

property
VISTALL commented 9 years ago

Hi. I will reopen - old issue.

Please for C# bugs use C# repository.

Thanks