dlang-community / DCD

The D Completion Daemon is an auto-complete program for the D programming language
GNU General Public License v3.0
349 stars 71 forks source link

Class does inherit symbols if superclass is specified as "module.Class" #664

Open jpcima opened 2 years ago

jpcima commented 2 years ago

Code below defines 2 classes equivalently, but one of them completes the method, and one does not. Attached a project as test case.

import mymodule;

class A : MyBase {
    void bar() {
        this.foo; //  <-- completes
    }
}

class B : mymodule.MyBase {
    void bar() {
        //this.  <-- does not complete
    }
}

minimal_example.tar.gz