diff --git a/vala/get_type/get_type.vala b/vala/get_type/get_type.vala index 1ae8530..317b1d1 100644 --- a/vala/get_type/get_type.vala +++ b/vala/get_type/get_type.vala @@ -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 ()); }