Bug 1548 – foreach of type tuple and string literal bug

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-10-07T09:57:00Z
Last change time
2015-06-09T01:14:18Z
Assigned to
bugzilla
Creator
sugiyama563

Comments

Comment #0 by sugiyama563 — 2007-10-07T09:57:56Z
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.
Comment #1 by sugiyama563 — 2007-10-07T10:39:20Z
I'm sorry. This is not a bug.