After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632734 - multiple constructors calls not permitted
multiple constructors calls not permitted
Status: RESOLVED DUPLICATE of bug 567269
Product: vala
Classification: Core
Component: Objects
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on: 567269
Blocks:
 
 
Reported: 2010-10-20 19:40 UTC by Jani Monoses
Modified: 2018-02-19 16:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jani Monoses 2010-10-20 19:40:32 UTC
Even if the two constructors will not be both called in the same object instantiation such code is not allowed by the compiler.

        if (construct_first) {
           base.first();
        } else {
           base.second();
        }
Comment 1 clinton 2013-05-07 18:51:17 UTC
Still reproducible in valac 0.20.1
Comment 2 Luca Bruno 2013-05-07 19:17:49 UTC
There's some work here, which is related: https://bugzilla.gnome.org/show_bug.cgi?id=567269
Comment 3 Rico Tzschichholz 2018-02-19 16:20:50 UTC

*** This bug has been marked as a duplicate of bug 567269 ***