[Issue 1548] New: foreach of type tuple and string literal bug
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 7 07:57:58 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1548
Summary: foreach of type tuple and string literal bug
Product: D
Version: 2.005
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: sugiyama563 at msn.com
import std.stdio;
void main(){
writefln(join("123", "456"));
}
string[] join(T ...)(T t){
string[] a;
foreach(e; t){
a ~= e;
}
return a;
}
The return value of function 'join' is broken.
--
More information about the Digitalmars-d-bugs
mailing list