http://d.puremagic.com/issues/show_bug.cgi?id=9216
Summary: Local import of std.array does not make popFront() visible Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: pun...@coverify.org --- Comment #0 from Puneet Goel <pun...@coverify.org> 2012-12-27 01:09:52 PST --- test.d(6): Error: undefined identifier 'popFront'When I import std.array at module level (line 1), popFront is available. But if I import std.array inside the main function, it gives me an error saying: test.d(6): Error: undefined identifier 'popFront' // import std.array; // compiles fine when placed here // 1 void main() // 2 { // 3 import std.array; // does not make popFront visible // 4 int foo[] = new int[5]; // 5 foo.popFront(); // 6 } // 7 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------