checker: apply fix for ui suggested by spaceface

Delyan Angelov 2022-05-16 21:33:02 +03:00 committed by Jef Roosens
parent 972c1855bc
commit ec5559a379
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 1 additions and 0 deletions

View File

@ -1876,6 +1876,7 @@ pub fn (mut c Checker) selector_expr(mut node ast.SelectorExpr) ast.Type {
}
method.params = method.params[1..]
node.has_hidden_receiver = true
method.name = ''
fn_type := ast.new_type(c.table.find_or_register_fn_type(c.mod, method, false,
true))
return fn_type