[vala/0.46] parser: Implicit "main" method of main-block is public and static



commit cb546e8b96f1b12a6a3dd5b4144f83d4de7e1b9e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Nov 24 22:42:18 2019 +0100

    parser: Implicit "main" method of main-block is public and static

 vala/valaparser.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index cc0297a8e..5bf0e341f 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2256,6 +2256,8 @@ public class Vala.Parser : CodeVisitor {
                var begin = get_location ();
 
                var method = new Method ("main", new VoidType (), get_src (begin));
+               method.access = SymbolAccessibility.PUBLIC;
+               method.binding = MemberBinding.STATIC;
                method.body = new Block (get_src (begin));
                parse_statements (method.body);
                if (current () != TokenType.EOF) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]