Thread overview | |||||
---|---|---|---|---|---|
|
October 09, 2013 [Issue 11210] New: -inline rejects valid code with captured AA | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11210 Summary: -inline rejects valid code with captured AA Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: code@benjamin-thaut.de --- Comment #0 from Benjamin Thaut <code@benjamin-thaut.de> 2013-10-09 12:33:20 PDT --- Dmd rejects the following valid code as soon as it is compiled with -inline import std.stdio; import std.range; import std.algorithm : map; import std.string; import std.typecons; void main(string[] args) { auto content = "one two three"; uint[string] counts; auto result = splitter(content) .map!(a => tuple(a, counts[a])); writefln("%s", result); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 09, 2013 [Issue 11210] -inline rejects valid code with captured AA | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjamin Thaut | http://d.puremagic.com/issues/show_bug.cgi?id=11210 --- Comment #1 from Benjamin Thaut <code@benjamin-thaut.de> 2013-10-09 12:35:04 PDT --- The error message is: Error: function D main is a nested function and cannot be accessed from std.format.formatRange!(LockingTextW riter, MapResult!(__lambda2, SplitterResult!(isWhite, string)), char).formatRange -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 10, 2013 [Issue 11210] -inline rejects valid code with captured AA | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjamin Thaut | http://d.puremagic.com/issues/show_bug.cgi?id=11210 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-10-10 04:59:50 PDT --- *** This issue has been marked as a duplicate of issue 4841 *** -- 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