mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: add error for fn f() Struct { return &Struct{} } (#6019)
This commit is contained in:
@@ -431,7 +431,7 @@ fn (mut d Doc) generate() ?Doc {
|
||||
d.time_generated = time.now()
|
||||
d.contents.sort_by_name()
|
||||
d.contents.sort_by_category()
|
||||
return d
|
||||
return *d
|
||||
}
|
||||
|
||||
pub fn generate(input_path string, pub_only, with_comments bool) ?Doc {
|
||||
|
||||
Reference in New Issue
Block a user