From 31a03ae93e13afe84cbb705e3ee984e27eaf6763 Mon Sep 17 00:00:00 2001 From: Henrixounez Date: Mon, 24 Jun 2019 23:37:35 +0200 Subject: [PATCH] parser.v: changed the booleans controlling if pub or mut --- compiler/parser.v | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/parser.v b/compiler/parser.v index 96ae13574c..5fe7a9d867 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -457,7 +457,6 @@ fn (p mut Parser) struct_decl() { p.error('structs can only have one `pub:`, all public fields have to be grouped') } is_pub = true - is_mut = false p.scanner.fmt_indent-- p.check(PUB) if p.tok != MUT { @@ -471,7 +470,6 @@ fn (p mut Parser) struct_decl() { p.error('structs can only have one `mut:`, all private mutable fields have to be grouped') } is_mut = true - is_pub = false p.scanner.fmt_indent-- p.check(MUT) if p.tok != MUT {