From 6f2dcd819f1425282562485ce4be2818eda380b6 Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 11 May 2020 16:10:26 +0300 Subject: [PATCH] parser: force visibility of interface methods --- vlib/v/parser/struct.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/parser/struct.v b/vlib/v/parser/struct.v index 456eccfb85..32bb809322 100644 --- a/vlib/v/parser/struct.v +++ b/vlib/v/parser/struct.v @@ -303,6 +303,7 @@ fn (mut p Parser) interface_decl() ast.InterfaceDecl { args: args file: p.file_name return_type: table.void_type + is_pub: true } if p.tok.kind.is_start_of_type() && p.tok.line_nr == line_nr { method.return_type = p.parse_type() @@ -313,6 +314,7 @@ fn (mut p Parser) interface_decl() ast.InterfaceDecl { name: name args: args return_type: method.return_type + is_pub: true }) } p.check(.rcbr)