Thread overview | |||||
---|---|---|---|---|---|
|
January 22, 2012 [Issue 7344] New: Function-as-array-method doesn't work with local imports | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7344 Summary: Function-as-array-method doesn't work with local imports Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2012-01-21 19:04:59 PST --- This is a spinoff of bug 6272, that was not fully fixed. void main() { import std.algorithm; auto data = new int[10]; sort(data); // OK data.sort(); // line 5, Error } The latest DMD 2.058head gives: test.d(5): Error: undefined identifier module test.sort This version gives the same error: void main() { import std.algorithm: sort; auto data = new int[10]; sort(data); // OK data.sort(); // line 5, Error } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 22, 2012 [Issue 7344] Function-as-array-method doesn't work with local imports | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=7344 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-01-21 19:30:25 PST --- Dup of Issue 6185? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 22, 2012 [Issue 7344] Function-as-array-method doesn't work with local imports | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=7344 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from bearophile_hugs@eml.cc 2012-01-21 19:41:29 PST --- *** This issue has been marked as a duplicate of issue 6185 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation