view nocompile/invariant_17.d @ 66:33346dff2640

extended invariant tests
author thomask
date Sat, 23 Oct 2004 10:09:46 +0000
parents
children 5f98d4a33d49
line wrap: on
line source

// invariant may not call non-static public class member functions (stack overflow)

module dstress.nocompile.invariant_17;

class MyClass{
	this(){
	}

	int test(){
		return 0;
	}

	invariant{
		assert(test()!=0);
	}
}

int main(){
	MyClass c = new MyClass();
	return 0;
}