www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21539] New: [REG 2.084] symbols from import inside template


          Issue ID: 21539
           Summary: [REG 2.084] symbols from import inside template mixin
                    cannot be accessed using module scope dot operator
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: schveiguy gmail.com

Normally, the dot operator finds symbols at module scope, even when imported
from other modules. However, if the import is done inside a template mixin, the
dot operator does not find the symbol.

Regression since 2.084


mixin template T()
   import std.stdio;
   alias X = .File;

mixin T;

Error: undefined identifier `File` in module `onlineapp`

Jan 10 2021