GNOME Bugzilla – Bug 776829
[Genie] Allow empty classes
Last modified: 2018-05-22 15:42:01 UTC
In Vala the following compiles: void main () { new Test (); } class Test { } In Genie the following: init pass class Test pass produces the error: test.gs:4.2-4.5: error: syntax error, expected declaration but got `pass' with previous `tab indent' Empty classes are useful for stubbing classes during development.
Created attachment 353861 [details] [review] Patch to fix it.
Created attachment 353862 [details] [review] tests to patch Here are tests for empty classes. To run them, please use "run_genie_tests.py" file from "genie-improved" branch from here: https://github.com/vlad1777d/Genie/tree/genie-improved Also this changes can be cherry-picked from "empty_classes" branch: https://github.com/vlad1777d/Genie/tree/empty_classes , which is build on the basis of lastest "master" branch. (see last 2 commits)
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/566.