summaryrefslogtreecommitdiffstats
path: root/test/cbot/scenarios/TestCB1.txt
blob: 516db47d5e1d5174bb86cf028c47a03fc440499a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern public void  toto()
{
	print( "hello" ) ;
	print( fac(5) );
	print( t() ) ;
}

public int fac(int n)
{
	if ( n<2 ) return 1;
	return n * fac(n-1);
}

point t()
{
	point	a(1,2);
	return a;
}