Hi there, I have simple code (in attachment), when I try to compile, i got error:
GLib.Object.vala:15.39-15.52: error: default value is less accessible than method `Node.add' public Node add (uint direction = Direction.AUTO) { ^^^^^^^^^^^^^^ Compilation failed: 1 error(s), 0 warning(s) What's wrong? PS: I test this code on Debian tesing (valac 0.36.5-1) -- Ondřej Tůma <mc...@zeropage.cz> www: http://ipv6.mcbig.cz jabber: mc...@jabber.cz twitter: mcbig_cz
enum Direction { LEFT, RIGHT, AUTO } public class Node : GLib.Object { public uint direction; private Node (uint direction = Direction.AUTO) { this.direction = direction; } public Node add (uint direction = Direction.AUTO) { var child = new Node (direction); return child; } }
pgpfo1QC1JCVa.pgp
Description: Digitální podpis OpenPGP
_______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list