www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19912] New: [module] No implicit import of object module an

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 puremagic.com
          Reporter: ibuclaw 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){}

--
May 28 2019