D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20013 - Visual D cannot identify overloaded functions
Summary: Visual D cannot identify overloaded functions
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: visuald (show other issues)
Version: D2
Hardware: All Windows
: P1 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-30 11:55 UTC by Srxy Wang
Modified: 2020-01-24 01:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Srxy Wang 2019-06-30 11:55:10 UTC
//
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
Comment 1 Rainer Schuetze 2019-11-17 17:39:20 UTC
Works when switching to the DMD based semantic engine in https://github.com/dlang/visuald/releases/tag/v0.51.0-beta1
Comment 2 Srxy Wang 2020-01-24 01:40:26 UTC
The dmd engine can indeed identify overloads, thanks so much.