www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20013] New: Visual D cannot identify overloaded functions

https://issues.dlang.org/show_bug.cgi?id=20013

          Issue ID: 20013
           Summary: Visual D cannot identify overloaded functions
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: x13989 126.com

//
int A(){
  return 1;
}

int A(int m, bool b=false){
  if(b){
    return m+1;
  }
  return 1;
}
//

int main(){
  A(23,true);
}

If I hover on “A(23,true), it would prompt “int A()” instead of “int
A(int m,
bool b=false”. 
If I set my cursor at “A(23,true)” and press F12 to go to definition, it
would
jump to the overload without parameters instead of the second overload. 
Please fix this, thanks! 
VS 16.1.4 + VD 0.50.0

--
Jun 30 2019