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 618348 - Classes in Posix profile
Classes in Posix profile
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Code Generator
unspecified
Other All
: Low blocker
: ---
Assigned To: Vala maintainers
Vala maintainers
wrong-code test-case
: 627412 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-05-11 08:56 UTC by Luca Bruno
Modified: 2012-08-13 16:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Bruno 2010-05-11 08:56:26 UTC
Hello,
this simple test case is broken, because Vala does not generate anything for the class (methods, struct, nothing...). Is posix profile supposed to only support structs? Wouldn't it be convenient to support compact classes?

public class Test
{
        int field;
        public void meth () { }
}

void main () {
}
Comment 1 Luca Bruno 2010-08-20 20:14:45 UTC
*** Bug 627412 has been marked as a duplicate of this bug. ***
Comment 2 rofl0r 2010-08-20 22:05:22 UTC
if this is not allowed, valac should deny compilation and show a proper error message
Comment 3 Jürg Billeter 2010-10-16 11:00:31 UTC
POSIX profile is considered experimental, there are several known limitations
at the moment
Comment 4 Jürg Billeter 2012-08-13 16:33:00 UTC
The experimental POSIX profile has been removed in Vala 0.17.4.