Maia [10361]: good code red

I'm seeing quite a few error highlights for code that is perfectly valid (and compiles as such), for example  a method with

private boolean methodX(int cond)
{

if (cond == 0)

{

...

return false;

}

else if (cond == 1)


{
...
return true
}

else

 

{

return true

}
}


shows the error squigly at the closing brace of the method.

Anyone else seeing this? Is this a new regression?

Cheers,

Bonny

1 comment
Comment actions Permalink

There was another issue with false errors: http://www.jetbrains.net/devnet/message/5240583 It was fixed in later builds.

There are no errors for me in your sample in the latest build (beside the fact that semicolons should be added after return statements).

Alexander.

0

Please sign in to leave a comment.