RazvanN <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |
         Resolution|---                         |INVALID

--- Comment #2 from RazvanN <> ---
This bug is invalid.

When you instantiate `S2!(tpl) v;` in main (test.d), the symbol tpl is visible,
so there's no problem. Now when S2 needs to be instantiated you instantiate S1
with the alias symbol t which points to tpl. This is fine also, but when you
instantiate S1, you mixin the code that is contained by the tpl template which
`alias S2!(tpl) tt;`, so your S1 becomes:

struct S1
    alias S2!tpl tt;

but in the file test1.d  there is no tpl symbol, therefore you end up with the
correct issued error. To fix this you just have to import test.d.

Closing as invalid.


Reply via email to