[Issue 1363] Compile-time issue with structs in 'for'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 23 01:39:48 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1363
------- Comment #1 from samukha at voliacable.com 2007-07-23 03:39 -------
This one gives
'Error: cannot cast int to char[]':
struct Bar
{
int x;
char[] s;
}
char[] foo()
{
Bar bar; // Works if bar is explicitly initialized.
return bar.s;
}
void main(char[][] args)
{
static x = foo();
}
--
More information about the Digitalmars-d-bugs
mailing list