Bug 8692 – UFCS doesn't work with template alias parameter

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-18T21:37:00Z
Last change time
2015-06-09T05:15:12Z
Assigned to
nobody
Creator
r.97all

Comments

Comment #0 by r.97all — 2012-09-18T21:37:44Z
In examples below these 5 lines are common: module main; import std.stdio : writeln; void main() { F!writeln("Hello ", "world!"); } In http://dpaste.dzfl.pl/26f42047 , I wrote F using UFCS: void F(alias f) (string x, string y) { x.f(y); } which became an error. // In http://dpaste.dzfl.pl/8f208239 , I wrote F normally: void F(alias f) (string x, string y) { f(x, y); } and it worked. I see many UFCS issues here, sorry if this is duplicated.
Comment #1 by yebblies — 2013-01-02T00:34:52Z
*** This issue has been marked as a duplicate of issue 6185 ***