www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12614] New: D Interface Files: package.di does not work


          Issue ID: 12614
           Summary: D Interface Files: package.di does not work
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: andre s-e-a-p.de

file calc.d
module lib.calc;

class A
    public int a;

file package.d
module lib;
public import lib.calc;

file main.d
import lib;

void main() 
  A a = new A();

Compile lib/header files and put them under dir "lib"
DMD calc package -H -lib

Compiling main file failed unless package.di is renamed to package.d
DMD main "-IJ:\Test\lib" J:\Test\lib\calc.lib

Apr 22 2014