digitalmars.D.bugs - [Issue 10449] New: Better error message when concatenating string
- d-bugmail puremagic.com (24/24) Jun 23 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10449
http://d.puremagic.com/issues/show_bug.cgi?id=10449 Summary: Better error message when concatenating string Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: michal.minich gmail.com PDT --- void main () { auto x = "str1" ~ ~ "str2"; // Error: '"str2"' is not of integral type, it is a string } Next time I will know, but it is quite confusing, it should say. "prefix operator '~' can be applied only to integral type, not to a string. If you are trying to concatenate string then check for redundant '~'." -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 23 2013