Conflict with local variable

Hi,

When extracting local variable, I get a false 'conflict with local
variable' if it's declared within another scope of the method:

if (ArticleCollection.ContainsKey(article.Id))
{
// first extracted this variable:
int ix = ArticleCollection.IndexOfKey(article.Id);
return ix;
}
else
{
// then extracted this variable,
// causing the conflict
int ix = ArticleCollection.Add(article);
return ix;
}

Thanks, Wiebe

0
1 comment

Hello Wiebe,

Sorry for a long delay. Thank you for your feedback. We are aware of this
bug and are going to fix it in version 2.0.

Hi,

When extracting local variable, I get a false 'conflict with local
variable' if it's declared within another scope of the method:

if (ArticleCollection.ContainsKey(article.Id))
{
// first extracted this variable:
int ix = ArticleCollection.IndexOfKey(article.Id);
return ix;
}
else
{
// then extracted this variable,
// causing the conflict
int ix = ArticleCollection.Add(article);
return ix;
}
Thanks, Wiebe

Thanks,
Andrey Simanovsky


0

Please sign in to leave a comment.