bug fix in intellisense: declaration of extension method with same name that static method in compiled class

This commit is contained in:
Бондарев Иван 2015-12-05 09:29:21 +01:00
parent 317b76cab3
commit ea9de57405

View file

@ -805,6 +805,8 @@ namespace CodeCompletion
if (topScope != null)
{
ps = topScope.FindNameOnlyInThisType(meth_name) as ProcScope;
if (ps != null && ps is CompiledMethodScope)
ps = null;
if (ps == null)
{
ps = new ProcScope(meth_name, topScope);
@ -1082,6 +1084,8 @@ namespace CodeCompletion
if (topScope != null)
{
ps = topScope.FindNameOnlyInThisType(meth_name) as ProcScope;
if (ps != null && ps is CompiledMethodScope)
ps = null;
if (ps == null)
{
ps = new ProcScope(meth_name, topScope);