Bug 5412 – import wtf2

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-01-04T17:26:00Z
Last change time
2012-02-18T18:40:09Z
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2011-01-04T17:26:53Z
quick, what does the following code do? import A = std.algorithm; import A = std.string; import std.stdio; void main(){ writeln(A.indexOf("abc","b")); } also, what does it do when you comment out either of the 'import A'? partial answer: it happily compiles in all three cases. though this example is a bit unglamorous since indexOf does the same thing either way.
Comment #1 by github-bugzilla — 2012-02-18T11:04:37Z
Comment #2 by github-bugzilla — 2012-02-18T11:47:28Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ebee93a3743e10d9826b371c8217f3ab45b1d54b Revert "fixed Issue 5412" This reverts commit d56aa5f2aa1bb228511a08b26999022ed62fb19e.
Comment #3 by bugzilla — 2012-02-18T18:40:09Z