view nocompile/with_06.d @ 16:0fcca61f008f

added "with" tests
author unknown
date Fri, 08 Oct 2004 07:38:21 +0000
parents
children 1f6cf5ccfbc9
line wrap: on
line source

class MyClass{
	void test(){
		char[] c="Inhalt";
		with(c){
			assert(0);
		}
	}
}

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