GNOME Bugzilla – Bug 648030
vala allows less accessible constants as defaults
Last modified: 2016-10-06 18:38:13 UTC
Maybe related to bug 601461. vala in: const int SOME_CONST = 1; public void function (int x = SOME_CONST) { } vapi out: [CCode (cheader_filename = "x.h")] public static void function (int x = SOME_CONST); result: x.vapi:4.38-4.47: error: The name `SOME_CONST' does not exist in the context of `function' public static void function (int x = SOME_CONST); ^^^^^^^^^^
problem still exists, as described, in 0.15
Created attachment 336757 [details] [review] Check accessibility of default arguments
commit 78588e6cf96a6f239840f728aedc2ecf5aabf7de Author: Simon Werbeck <simon.werbeck@gmail.com> Date: Sun Oct 2 00:20:59 2016 +0200 vala: Check accessibility of default arguments