diff --git a/vlib/builtin/string.v b/vlib/builtin/string.v index e9829d5343..2e62394758 100644 --- a/vlib/builtin/string.v +++ b/vlib/builtin/string.v @@ -43,10 +43,10 @@ NB: A V string should be/is immutable from the point of view of pub struct string { - is_lit bool pub: str byteptr // points to a C style 0 terminated string of bytes. len int // the length of the .str field, excluding the ending 0 byte. It is always equal to strlen(.str). + is_lit bool } // mut: // hash_cache int diff --git a/vlib/v/checker/tests/unimplemented_interface_g.vv b/vlib/v/checker/tests/unimplemented_interface_g.vv.disabled similarity index 100% rename from vlib/v/checker/tests/unimplemented_interface_g.vv rename to vlib/v/checker/tests/unimplemented_interface_g.vv.disabled diff --git a/vlib/v/parser/fn.v b/vlib/v/parser/fn.v index d22d5cf7a7..d436eee174 100644 --- a/vlib/v/parser/fn.v +++ b/vlib/v/parser/fn.v @@ -125,8 +125,10 @@ fn (mut p Parser) fn_decl() ast.FnDecl { if !rec_mut { rec_mut = p.tok.kind == .key_mut } - is_amp := p.tok.kind == .amp + receiver_pos = rec_start_pos.extend(p.tok.position()) + is_amp := p.tok.kind == .amp + // if rec_mut { // p.check(.key_mut) // }