view nocompile/alias_16.d @ 1383:52c9e86b6486

@url@ -> @uri@
author thomask
date Sun, 04 Mar 2007 13:07:35 +0000
parents ec6d35cccfb5
children d3a3e0c251d8
line wrap: on
line source

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

// @author@	Ilya Zaitseff <sark7@mail333.com>
// @date@	2005-02-14
// @uri@	news:opsl6xo4fhaaezs2@robingood
// @uri@	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;
}