Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 13, 2024
1 parent c941c3d commit 5d1d3ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions vlib/v/fmt/fmt.v
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,7 @@ pub fn (mut f Fmt) fn_type_decl(node ast.FnTypeDecl) {
if s.starts_with('&') {
s = s[1..]
}
s = s.trim_left('shared ')
}
is_last_arg := i == fn_info.params.len - 1
should_add_type := true || is_last_arg
Expand Down
5 changes: 5 additions & 0 deletions vlib/v/fmt/tests/receiver_state_keep.vv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module main

struct State {}

type Func = fn (shared state State) string

0 comments on commit 5d1d3ac

Please sign in to comment.