view run/s/struct_25_D.d @ 1541:fe62f80b7ea1

[Issue 1253] DMD 0.175 introduced bug: array initializers as expressions are not allowed? Oskar Linde <oskar.linde@gmail.com> 2007-06-01 http://d.puremagic.com/issues/show_bug.cgi?id=1253
author thomask
date Sun, 01 Jul 2007 13:18:21 +0000
parents b8c0195059d9
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	John C <johnch_atms@hotmail.com>
// @date@	2006-05-25
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=7325

module dstress.run.s.struct_25_D;

struct S2 {
	int d;
}

struct S1 {
	int a;
	long b;
	S2 c;
}

int main(){
	S1 e;
	S2 f;
	e.c = f;

	return 0;
}