Commit 76991c85 authored by Rico Tzschichholz's avatar Rico Tzschichholz

vala: Both arguments of NC_() must be constant for this call to be constant

parent a9ed25d6
......@@ -120,8 +120,8 @@ public class Vala.MethodCall : Expression {
// first argument is string
return argument_list[0].is_constant ();
} else if (method_type.method_symbol.get_full_name () == "GLib.NC_") {
// second argument is string
return argument_list[1].is_constant ();
// first and second argument is string
return argument_list[0].is_constant () && argument_list[1].is_constant ();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment