[Issue 1059] String literal concatenated with array of chars - inconsistent behavior
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 13 14:45:05 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1059
------- Comment #1 from gavrilyak at gmail.com 2007-03-13 16:44 -------
Update:
This issue occurs only in initialization, normal assignment works.
char[] hi = "h" ~ "i"; //works
char[] hi1 = "h" ~ ['i']; //works
char[] hi2 = ['h'] ~ "i"; // semicolon expected, not '~'
//found '~' instead of statement
char[] hi3 = ['h'] ~ ['i'];// semicolon expected, not '~'
//found '~' instead of statement
hi1 = "h" ~ ['i']; //works
hi1 = ['h'] ~ "i"; //works
hi1 = ['h'] ~ ['i']; //works
--
More information about the Digitalmars-d-bugs
mailing list