Re: [Vala] syntax error, expected get, set, or construct



On Sat, 2017-04-15 at 15:38 +0200, Sascha Manns wrote:
Hello list,

i prepared that class:
https://github.com/saigkill/gnome-publisher/blob/master/src/ui/build_
publication.vala

The compiler says to me:

sascha@linux-ktr9:~/Projects/gnome-publisher-tmp/src> make
  GEN      resources.c
git.mk: Generating .gitignore
make  all-am
make[1]: Verzeichnis „/home/sascha/Projects/gnome-publisher-tmp/src“
wird betreten
  VALAC    gnome_publisher_vala.stamp
ui/build_publication.vala:57.2-57.11: error: syntax error, expected
get,
set, or construct
    build_docx = chkDOCX.active;
    ^^^^^^^^^^


The functions are missing parenthesis.  For example,

    [GtkCallback]
    private void on_chkDOCX_toggled {
            build_docx = chkDOCX.active;
    }

Should be

    [GtkCallback]
    private void on_chkDOCX_toggled () {
            build_docx = chkDOCX.active;
    }


And the error above it gets me for each element in the class. But
this
class is build like the other classes (like
https://github.com/saigkill/gnome-publisher/blob/master/src/ui/revisi
on_update.vala).
On the other classes i haven't seen that issue.

Maybe anyone has an idea?

Greetings

Sascha

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]