digitalmars.D.bugs - [Issue 9515] New: UFCS fails with local aliases
- d-bugmail puremagic.com (28/28) Feb 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9515
- d-bugmail puremagic.com (12/12) Feb 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9515
http://d.puremagic.com/issues/show_bug.cgi?id=9515
Summary: UFCS fails with local aliases
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: jmdavisProg gmx.com
PST ---
This code
import std.algorithm;
void main()
{
alias std.algorithm.find f;
f("hello", 'c');
"hello".f('c');
}
fails to compile, giving this error
q.d(7): Error: undefined identifier 'f'
Note that the call which doesn't use UFCS works, but the one which does fails
to compile. If the alias is moved outside of the function, then both compile.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 14 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9515
Andrej Mitrovic <andrej.mitrovich gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andrej.mitrovich gmail.com
Resolution| |DUPLICATE
08:18:59 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: -------
Feb 15 2013








d-bugmail puremagic.com