[Issue 9514] "template instance ⦠is not an alias"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 15 20:52:39 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9514
--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> 2013-02-15 20:52:35 PST ---
(In reply to comment #4)
(In reply to comment #5)
> A smaller case:
> ----------------
> template TStructHelpers() {
>
> void opEquals(Foo) {
> FieldNames!();
> }
> }
>
>
> struct Foo {
> mixin TStructHelpers!();
> }
>
> import std.algorithm : find;
>
> template FieldNames() {
> static if (find!`true`) int FieldNames;
> }
Hmm, maybe the root cause is the combination of selective import and unresolved
forward reference. Looks like "Merge pull request #1543" was a trigger for put
it in the table.
Technically, current "selective/renamed import" makes anonymous import
declaration and alias declaration. They have no internal relation, so forward
reference resolution is done separately. BUT, it should be together.
Yet I don't know well about the import mechanism. I need a bit more time to fix
it...
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list