-- load /databases/virtuoso/hacking/locasg.sql;

drop type testi;
drop type testo;

create type testo as (
	val_int int default 1
)
self as ref
;

create type testi as (
	val_int int default 1,
	val_o testo default null
)

	constructor method testi(in a int)
;

create constructor method testi(in a int) for testi {

--	declare b int;
	declare v any;
	self.val_o:= new testo();
	self.val_o.val_int:=33;
	v:= vector(11,2);
	v[0]:=22;
	v[1][1]:=44;
	self.val_o.val_int:=v[0];

--	self.val_int:= 33;
--	self.val_int:=a;	
--	b:=a;
}
;
