[Issue 19912] New: [module] No implicit import of object module an object declaration exists.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 28 19:31:58 UTC 2019


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

          Issue ID: 19912
           Summary: [module] No implicit import of object module an object
                    declaration exists.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

void f(string){}

$ dmd -c -conf= a.d
Error: cannot find source code for runtime library file 'object.d'
       dmd might not be correctly installed. Run 'dmd -man' for installation
instructions.
       config file: not found
Specify path to file 'object.d' with -I switch


However, adding any of the following below compiles without error.

struct object {}
void f(string){}

---

class object {}
void f(string){}

---

alias object = int;
void f(string){}

---

void object() {}
void f(string){}

--


More information about the Digitalmars-d-bugs mailing list