view nocompile/b/bug_expression_1904_A.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 2bd75a859716
children
line wrap: on
line source

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

// @author@	Alexander Panek <a.panek@brainsware.org>
// @date@	2007-01-01
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=828
// @desc@	[Issue 828] expression.c:1904: virtual Expression* ThisExp::semantic(Scope*): Assertion `global.errors || var' failed.

module dstress.nocompile.b.bug_expression_1904_A;

class A{
	void func(){
		Object o = cast(typeof(this.classinfo))null;
	}
}

void main(){
	A = new A;
	A.func();
}