[Issue 8780] std.traits.ReturnType of overloaded functions
https://issues.dlang.org/show_bug.cgi?id=8780 Simen Kjaeraaschanged: What|Removed |Added Status|NEW |RESOLVED CC||simen.kja...@gmail.com Resolution|--- |DUPLICATE --- Comment #4 from Simen Kjaeraas --- *** This issue has been marked as a duplicate of issue 7549 *** --
[Issue 8780] std.traits.ReturnType of overloaded functions
http://d.puremagic.com/issues/show_bug.cgi?id=8780 Denis Shelomovskij verylonglogin@gmail.com changed: What|Removed |Added Keywords||accepts-invalid CC||verylonglogin@gmail.com --- Comment #3 from Denis Shelomovskij verylonglogin@gmail.com 2012-11-15 11:35:25 MSK --- This is because of Issue 7549. Not a duplicate as library have to workaround compiler bugs and work correct. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8780] std.traits.ReturnType of overloaded functions
http://d.puremagic.com/issues/show_bug.cgi?id=8780 --- Comment #1 from luka8088 luka8...@owave.net 2012-10-08 03:44:04 PDT --- module program; import std.stdio; import std.traits; class a {} class b {} int f1 (a o) { return 1; } string f1 (b o) { return 2; } void main () { a a1 = new a(); b b1 = new b(); writeln(a1.f1()); // 1 writeln(b1.f1()); // 2 typeof(a1.f1()) v1; // int typeof(b1.f1()) v2; // string ReturnType!(a1.f1) v2; // Error: no property 'f1' for type 'program.a' // Error: ReturnType!(__error) is used as a type } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8780] std.traits.ReturnType of overloaded functions
http://d.puremagic.com/issues/show_bug.cgi?id=8780 --- Comment #2 from luka8088 luka8...@owave.net 2012-10-08 04:04:34 PDT --- I am sorry for such bad description but it seems to me that there are multiple bugs here and I am not sure where the problem is - or even if there is one. Free free to provide a better description =) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---