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:
@ -165,7 +165,7 @@ pub mut:
|
||||
pub fn (mut desc C.sg_shader_stage_desc) set_image(index int, name string) C.sg_shader_stage_desc {
|
||||
desc.images[index].name = name.str
|
||||
desc.images[index].@type = ._2d
|
||||
return desc
|
||||
return *desc
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user