view nocompile/alias_16.d @ 1330:f3f715978184

Georg Wrede <georg@iki.fi> 2007-01-07 mail:45A120F5.1050108@iki.fi
author thomask
date Sat, 13 Jan 2007 10:33:49 +0000
parents ec6d35cccfb5
children 52c9e86b6486
line wrap: on
line source

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

// @author@	Ilya Zaitseff <sark7@mail333.com>
// @date@	2005-02-14
// @uri@	news:opsl6xo4fhaaezs2@robingood
// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2982

// __DSTRESS_ELINE__ 26

module dstress.nocompile.alias_16;

class A{
	int foo;
}

class B{
	A a;
}

int main(){
	B b=new B();
	assert(b.a.foo==0);
	{
		alias b.a.foo bar;
		bar++;
	}
	assert(b.a.foo==1);
	return 0;
}