[Issue 18432] alias x = x where x is an imported symbol should result in an error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 21 07:07:34 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18432

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #5 from Martin Nowak <code at dawg.eu> ---
(In reply to Steven Schveighoffer from comment #2)
> I'm not 100% sure on the first one, as it seems like if it works, it's
> simply a no-op. Can you give a reason why having it succeed is bad?

It's not a no-op but actually created some weird alias behind the scenes, sth.
like writeln (declared alias) -> writeln (alias from selective import) ->
std.stdio.writeln (real symbol), not too sure.
But with Raszvan's recent protection fix for selective imports this started to
ran into an infinite loop.

--


More information about the Digitalmars-d-bugs mailing list