get_type.vala updated

This commit is contained in:
Kolan Sh 2014-06-23 14:13:25 +04:00
parent 9c11aa58fe
commit e8d0fbda5f
1 changed files with 4 additions and 4 deletions

View File

@ -6,12 +6,12 @@ public class BBB : AAA {
void main () {
AAA real_a = new AAA ();
stdout.printf ("real_a = %s\n", real_a.get_type ().to_string ());
stdout.printf ("real_a = %s\n", real_a.get_type ().name ());
BBB real_b = new BBB ();
stdout.printf ("real_b = %s\n", real_b.get_type ().to_string ());
stdout.printf ("real_b = %s\n", real_b.get_type ().name ());
var a_new = Object.new (real_a.get_type ());
stdout.printf ("a_new = %s\n", a_new.get_type ().to_string ());
stdout.printf ("a_new = %s\n", a_new.get_type ().name ());
var b_new = Object.new (real_b.get_type ());
stdout.printf ("b_new = %s\n", b_new.get_type ().to_string ());
stdout.printf ("b_new = %s\n", b_new.get_type ().name ());
}