GNOME Bugzilla – Bug 583598
Vala and class variable in interfaces
Last modified: 2011-08-08 20:42:24 UTC
Please describe the problem: Wrongly reported error (in case which should be feature anyway) Steps to reproduce: interface Test : GLib.Object { class int i; } Actual results: warning: field `Test.i' never used error: class fields are not supported in compact classes Expected results: warning: field `Test.i' never used error: class fields are not supported in interfaces or (preferably): warning: field `Test.i' never used Does this happen every time? Other information:
Confirming, the error message should be fixed.
Created attachment 192647 [details] [review] Fix error message for Bug 583598 - Vala and class variable
Class fields could be ideally supported for interfaces.
With the restriction that they have to be static. This sounds like another bug report (enhancement). This is about the current error message.
*** This bug has been marked as a duplicate of bug 546440 ***