view compile/o/outer_02_D.d @ 1625:4e908dadd51c

modulo operations with complex numbers are allowed
author Moritz Warning <moritzwarning@web.de>
date Thu, 06 Jan 2011 14:59:13 +0100
parents 902d2c168029
children
line wrap: on
line source

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

// @author@	Tyler Knott <tknott@gmail.com>
// @date@	2007-01-22
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=872
// @desc@	[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.

module dstress.compile.o.outer_02_D;

class Box{
	class Outer{
		class Inner{
			void foo() {
				typeof(this.outer.outer) x;
				static assert(is(typeof(x) == Box));
			}
		}
	}
}