package test 
		
	native testFail(string msg)
	native testSuccess()


	module A 
		function getFoo() returns int 
			return 5
		
		
		function getBar() returns int 
			return getFoo() + 1
		
	
	
	class C 
		use A
		
		override function getFoo() returns int 
			return 2
		
		
		
			
	
	
	
	init 
		C c = new C()
		
		if c.getBar() != 3 
			testFail("fail")
		
			
		testSuccess()
	
endpackage
